Skip to content

add unknown optional keywords to parse and use_args#506

Closed
zenglanmu wants to merge 2 commits intomarshmallow-code:devfrom
zenglanmu:dev
Closed

add unknown optional keywords to parse and use_args#506
zenglanmu wants to merge 2 commits intomarshmallow-code:devfrom
zenglanmu:dev

Conversation

@zenglanmu
Copy link
Copy Markdown

Allow user to set the unknown field is important in some cases. For example, the query also have an additional per_page args which handled by other library. Current webargs with version 6.0 behavior ould raise an validation error, which causes broken changes since verision 5. Maybe it is better to set unknown=EXCLUDE as default behavior or at least gives the user the ability to set it.

@sirosen
Copy link
Copy Markdown
Collaborator

sirosen commented Sep 11, 2020

As mentioned in #514, I think we prefer an approach in which dict schemas and regular schemas are treated the same.
This is going to be solved in v7.0 in a way that also handles setting defaults per location (see #544 for detail).

In light of that, and given that I'm trying to get 7.0 ready in the next few weeks or months, I'm going to close this.

@sirosen sirosen closed this Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants