You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background
I am generating a Flask server from a Swagger document with multiple schema definitions. I am generating the server code at build time, and committing it in source control.
Actual Outcome
Between two builds with no changes in my swagger.yaml, the file schemas.py moves a Definitions... entry between two different lines in the file; it is either the first Definitions entry, or the third. This is seen in the diff:
Background
I am generating a Flask server from a Swagger document with multiple schema definitions. I am generating the server code at build time, and committing it in source control.
Actual Outcome
Between two builds with no changes in my swagger.yaml, the file
schemas.py
moves aDefinitions...
entry between two different lines in the file; it is either the firstDefinitions
entry, or the third. This is seen in the diff:Expected Outcome
The file should not change between two builds. The
Definitions
variables should be sorted in a deterministic manner.Versions
Additional Details
I can work around this for now by only running my
swagger-py-codegen
task if changes are detected in myswagger.yaml
.The text was updated successfully, but these errors were encountered: