Noob question, but I have a simple schema:
class User(Schema):
name = fields.Str(required=True)
email = fields.Str(required=True)
And I want to extend it, but in the extended case make a field optional
class UserIHavePhoneNumberFor(User):
phone = fields.Str(required=True)
# Don't Care about Email because I can pester them via phone!
I've checked the docs but can't find a way to do this.
Any help?
Thank you!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…