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
Copy file name to clipboardExpand all lines: docs/advanced.rst
-7Lines changed: 0 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,10 +107,6 @@ When you need more flexibility in defining input schemas, you can pass a marshma
107
107
last_name = fields.Str(missing="")
108
108
date_registered = fields.DateTime(dump_only=True)
109
109
110
-
#NOTE: Uncomment below two lines if you're using marshmallow 2
111
-
# class Meta:
112
-
# strict = True
113
-
114
110
115
111
@use_args(UserSchema())
116
112
defprofile_view(args):
@@ -131,9 +127,6 @@ When you need more flexibility in defining input schemas, you can pass a marshma
131
127
username = args["username"]
132
128
# ...
133
129
134
-
.. warning::
135
-
If you're using marshmallow 2, you should always set ``strict=True`` (either as a ``class Meta`` option or in the Schema's constructor) when passing a schema to webargs. This will ensure that the parser's error handler is invoked when expected.
0 commit comments