Is it possible to validate all query parameters at once? #6019
Unanswered
flashgorman-chorus
asked this question in
Questions
Replies: 1 comment 1 reply
-
|
I cannot reproduce this issue on my machine. It behaves correctly here. Operating System Operating System Details FastAPI Version Python Version |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
When I use
Dependsfor custom query parameter validation, only the first error is reported. In the example above, if I try to call the API without any value forparam2, that never gets reported due to the exception raised by my custom validator used forparam1.Is it possible to get FastAPI to validate all query parameters - even those that use custom validators via
Depends- so I can communicate ALL of the problems back to the caller instead of one at a time?Operating System
macOS
Operating System Details
No response
FastAPI Version
0.89.1
Python Version
3.7.14
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions