datamodel-code-generator
datamodel-code-generator copied to clipboard
Predictable code generation
Is your feature request related to a problem? Please describe. Code generated by different systems (e.g. different OS like Linux and Mac) can be different, because Python classes can be output in different order.
Describe the solution you'd like Code generated should be the same regardless of system used to generate it. This allows reproducible builds and validation in CI/CD systems.
Describe alternatives you've considered Changing generated files with a tool similar to isort but for classes - couldn't find any!
@josemonteiro I'm sorry for my late reply. It's a great idea. I would like to add an option to sort classes by name.
This would be great! Really looking for this!
This would be really cool as it sometimes introduces unforeseen problems in our use case :)
🚀 🙏
@josemonteiro @andreffs18 @captainvera
I'm sorry that my action is too late.
I have released a new version, 0.17.0 .
The version has a new option, --keep-model-order
Thank you very much!!
Thank you @koxudaxi!
Thank you! @koxudaxi