Can we have all the required params together in the generated generating openapi schema ? #1188
Unanswered
sanjeevbhusal
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the generated openapi schema, I want all of my required fields to come first. I tried looking in django-ninja, fast api and pydantic doc but couldn't find any solution for this.
If a schema is very simple, I can define all required params first. However, if a schema A extends another schema B, fields defined in schema B will come first. There can be some optional fields in schema B.
Is there any configuration that i can pass while creating api that keeps all required params together in the generated openapi.json file ?
Beta Was this translation helpful? Give feedback.
All reactions