Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValidationError is not raised on unknown query parameters #435

Closed
csirmazbendeguz opened this issue Oct 17, 2019 · 1 comment
Closed

ValidationError is not raised on unknown query parameters #435

csirmazbendeguz opened this issue Oct 17, 2019 · 1 comment

Comments

@csirmazbendeguz
Copy link

class MySchema(Schema):
    class Meta:
        unknown = RAISE  # ignored by webargs

@app.route(...)
@use_args(MySchema())
def hello_world(args):
    ...

I want webargs to raise a ValidationError when the request has unknown query parameters.

marshmallow-code/marshmallow#524

How can I achieve this?

@csirmazbendeguz csirmazbendeguz changed the title ValidationError is not raised on unknown fields ValidationError is not raised on unknown query parameters Oct 17, 2019
@sloria
Copy link
Member

sloria commented Oct 17, 2019

This is discussed in #267. #420 will address this.

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

No branches or pull requests

2 participants