Skip to content

Wrong openapi response model with optional fields #10041

Answered by tiangolo
FArseny asked this question in Questions
Discussion options

You must be logged in to vote

Yep, there was a lot of work put to get this new behavior, it's actually more correct, but I just added a feature to allow disabling it if you want to get the old behavior back, it's available since FastAPI 0.102.0 🎉 https://fastapi.tiangolo.com/how-to/separate-openapi-schemas/

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
6 replies
@andrerav
Comment options

@commonism
Comment options

@alexgaspard
Comment options

@andrerav
Comment options

@alexgaspard
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@aravindnujella
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
6 participants