Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Add support for multiple Annotated annotations, e.g. Annotated[str, Field(), Query()] #10773

Merged
merged 7 commits into from
Dec 12, 2023

Conversation

tiangolo
Copy link
Member

@tiangolo tiangolo commented Dec 11, 2023

✨ Add support for multiple Annotated annotations, e.g. Annotated[str, Field(), Query()]

Validations from multiple annotations are only performed when using Pydantic v2.

This was detected by ODMantic's migration to Pydantic v2.

@tiangolo tiangolo added the feature New feature or request label Dec 11, 2023
@tiangolo tiangolo marked this pull request as ready for review December 12, 2023 00:09
@tiangolo tiangolo merged commit 6f5aa81 into master Dec 12, 2023
17 checks passed
@tiangolo tiangolo deleted the multi-annotated branch December 12, 2023 00:22
nazarepiedady pushed a commit to nazarepiedady/fastapi that referenced this pull request Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant