Skip to content
Discussion options

You must be logged in to vote

Thanks for the interest! So, the way you are declaring your Pydantic models as class attributes inside of a class is not really supported in Pydantic nor FastAPI. It would probably be better to refactor that.

Is there any reason why you need the code with that structure?

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@alukach
Comment options

Answer selected by tiangolo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or problem
4 participants