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
- When using `Undefined.INCLUDE`, an `UndefinedParameterError` will be raised if you don't specify
396
-
exactly one field of type `CatchAll`.
397
-
- Note that `LetterCase` does not affect values written into the `CatchAll` field, they will be as they are given.
398
-
- When specifying a default (or a default factory) for the the `CatchAll`-field, e.g. `unknown_things: CatchAll = None`, the default value will be used instead of an empty dict if there are no undefined parameters.
399
-
- Calling __init__ with non-keyword arguments resolves the arguments to the defined fields and writes everything else into the catch-all field.
- When using `Undefined.INCLUDE`, an `UndefinedParameterError` will be raised if you don't specify
397
+
exactly one field of type `CatchAll`.
398
+
- Note that `LetterCase` does not affect values written into the `CatchAll` field, they will be as they are given.
399
+
- When specifying a default (or a default factory) for the the `CatchAll`-field, e.g. `unknown_things: CatchAll = None`, the default value will be used instead of an empty dict if there are no undefined parameters.
400
+
- Calling __init__ with non-keyword arguments resolves the arguments to the defined fields and writes everything else into the catch-all field.
400
401
401
402
4. All 3 options work as well using `schema().loads` and `schema().dumps`, as long as you don't overwrite it by specifying `schema(unknown=<a marshmallow value>)`.
402
403
marshmallow uses the same 3 keywords ['include', 'exclude', 'raise'](https://marshmallow.readthedocs.io/en/stable/quickstart.html#handling-unknown-fields).
0 commit comments