Pydantic V2 with fastapi #11770
Unanswered
pablocimatoteramot
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
I am trying to format a response model output with pydantic version 2, and i am not able to do it.
I used to do it with root_validator in the v1,
Something like:
Operating System
Linux
Operating System Details
fastapi==0.111.0
pydantic==2.7.1
FastAPI Version
fastapi==0.111.0
Pydantic Version
pydantic==2.7.1
Python Version
3.10
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions