Skip to content

Scalable approach to defining query parameters #11860

Answered by YuriiMotov
lcdunne asked this question in Questions
Discussion options

You must be logged in to vote

Don't use Pydantic models for non-body parameters (Query, Form, Path, ...), it's not officially supported by FastAPI.
Take a look at the answer of Sebastián Ramírez to this comment: #9709 (comment), also #9709 (comment)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@lcdunne
Comment options

@YuriiMotov
Comment options

Answer selected by lcdunne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or problem
2 participants