You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
required=False is the default behavior. We should remove this option to prevent mistakes where callers mistakenly think required=True is the default behavior.
The following definitions are equivalent
class Post:
author = fields.StringField()
class Post:
author = fields.StringField(required=False)
This is different.
class Post:
author = fields.StringField(required=True)
With this change, it would only be possible to write:
class Post:
author = fields.StringField()
class Post:
author = fields.StringField(required=True)
The following would error:
class Post:
author = fields.StringField(required=False)
The text was updated successfully, but these errors were encountered:
required=False is the default behavior. We should remove this option to prevent mistakes where callers mistakenly think required=True is the default behavior.
The following definitions are equivalent
This is different.
With this change, it would only be possible to write:
The following would error:
The text was updated successfully, but these errors were encountered: