-
-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert Parser.pass_all_args to Parser.unknown
This commit is an intermediate step meant to show the distinction between a standalone pass_all_args flag and *always* passing all args but allowing the user to specify a value for `unknown` to pass to `Schema.load()`. In this version, the webargs.Parser object is able to use `Schema.load(unknown=EXCLUDE)` on marshmallow 3 as the default for backwards compatibility. Users can pass `unknown=None` to specify that the Parser should not pass a value and the schema default should be used. In this way, the backwards-incompatible change to be made in a future webargs release will be to change the default for Parser.unknown from EXCLUDE to None (or to eliminate it, and make the `None` behavior the only option).
- Loading branch information
Showing
3 changed files
with
64 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters