Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
tiangolo merged 7 commits into
masterfrom
multi-annotated
Dec 12, 2023
Merged

✨ Add support for multiple Annotated annotations, e.g. Annotated[str, Field(), Query()]#10773
tiangolo merged 7 commits into
masterfrom
multi-annotated

Conversation

@tiangolo

@tiangolo tiangolo commented Dec 11, 2023

Copy link
Copy Markdown
Member

✨ 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
@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