Skip to content

✨ Support for mixed and multiple Pydantic models for parameters using Query, Cookie and Header#7

Open
hbrooks wants to merge 8 commits into
masterfrom
demo/pr-12481
Open

✨ Support for mixed and multiple Pydantic models for parameters using Query, Cookie and Header#7
hbrooks wants to merge 8 commits into
masterfrom
demo/pr-12481

Conversation

@hbrooks
Copy link
Copy Markdown

@hbrooks hbrooks commented May 28, 2026

Originally PR fastapi#12481 in fastapi/fastapi by @JSCU-CNI

JSCU-CNI and others added 8 commits January 7, 2026 14:56
…g Query, Cookie and Header

From fastapi#12199 onwards, Pydantic models are supported for query, cookie and
header parameters. When one parameter is present, the model is flattened
in the OpenAPI spec, but when multiple are defined, they aren't.

This is confusing, and results in a confusing OpenAPI spec. Since these
arguments are used in flattened form anyway, it makes more sense to
flatten all of them.
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.

3 participants