Skip to content

Conversation

shaleh
Copy link

@shaleh shaleh commented Jun 25, 2025

As documented in #1335, Pydantic is restricting use of additional parameters to Field. See https://docs.pydantic.dev/2.9/migration/#changes-to-pydanticfield for more details.

Move q and ignore_none into json_extra_schema as dictionary arguments.

Also, Query(...) does not get along with type checkers so refresh to use the v1 Query[] style to be consistent.

As documented in vitalik#1335,
Pydantic is restricting use of additional parameters to `Field`. See
https://docs.pydantic.dev/2.9/migration/#changes-to-pydanticfield for
more details.

Move `q` and `ignore_none` into `json_extra_schema` as dictionary
arguments.

Also, `Query(...)` does not get along with type checkers so refresh to
use the v1 `Query[]` style to be consistent.
@l1b3r
Copy link

l1b3r commented Jul 18, 2025

FYI I have submitted a PR which attempts to solve this issue among other things: #1514

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.

2 participants