bauerji / flask-pydantic

flask extension for integration with the awesome pydantic package
MIT License
352 stars 56 forks source link

Validator with query params #66

Open RoieLabes opened 1 year ago

RoieLabes commented 1 year ago

Hi! When I'm writing a validator in a pydantic schema, beside getting the values, I need to have the query params in order to know the context of the request. After seeing the b = body_model(**body_params) in this repo's code I understand that it's not possible at the moment.

I'm thinking about adding it to this package, does that make sense?