Releases: koxudaxi/datamodel-code-generator
Releases · koxudaxi/datamodel-code-generator
0.17.1
What's Changed
- Change custom template dir structure by @koxudaxi in #1070
- Support enum as literal in root model by @koxudaxi in #1073
- Improve duplicate model detection by @koxudaxi in #1076
- Fix reference same hierarchy directory by @koxudaxi in #1082
- Fix wrong overwrite field default by @koxudaxi in #1085
- Fix mro field name on enum by @koxudaxi in #1069
- OpenAPI - Add support for query parameter model generation by @hambrosia in #1083
- Support dataclasses.dataclass by @koxudaxi in #1068
New Contributors
- @hambrosia made their first contribution in #1083
Full Changelog: 0.17.0...0.17.1
0.17.0
What's Changed
- Add
--keep-model-order
by @koxudaxi in #1043 - Support openapi
discriminator
by @koxudaxi in #1045 - Fix referenced
patternProperties
by @koxudaxi in #1046 - Support
default_factory
by @koxudaxi in #1047 - Remove duplicate model by @koxudaxi in #1048
- Fix naming logic for duplicate name model by @koxudaxi in #1049
- Proposal for adding version metadata to header section by @ghandic in #1053
- Refactor set-default-enum-member by @koxudaxi in #1057
- Support list default enum member by @koxudaxi in #1058
- Support default object value by @koxudaxi in #1060
- Fix cli option name --use_non_positive_negative_number_constrained_types by @koxudaxi in #1064
- Add
--field-extra-keys-without-x-prefix
by @koxudaxi in #1066
New Contributors
Full Changelog: 0.16.1...0.17.0
0.16.1
What's Changed
- Change default value to None by @JensHeinrich in #1028
- Support json pointer to array by @koxudaxi in #1030
- Fix/remove not none arg parse defaults by @JensHeinrich in #1029
- Add --use-default-kwarg option for better type checker compatibility by @zackyancey in #1034
- add --remove-special-field-name-prefix by @koxudaxi in #1033
- Fix snake_case generation by @koxudaxi in #1037
- Add --disable-warnings by @koxudaxi in #1038
- Remove dummy field by @koxudaxi in #1039
New Contributors
- @JensHeinrich made their first contribution in #1028
- @zackyancey made their first contribution in #1034
Full Changelog: 0.16.0...0.16.1
0.16.0
What's Changed
- Fix the order of the model having multiple base_class by @koxudaxi in #995
- Fix incorrect remove model action by @koxudaxi in #997
- Support reference to object properties by @koxudaxi in #998
- Fix field constraint number coersion bug by @ninowalker in #1003
- Fix --collapse-root-models by @koxudaxi in #1002
- Fix --capitalise-enum-members by @koxudaxi in #1011
- Override optional all_of field with required by @koxudaxi in #1012
- Improve anyOf and oneOf detection when anyOf and oneOf parent has proprerties by @koxudaxi in #1013
New Contributors
- @ninowalker made their first contribution in #1003
Full Changelog: 0.15.0...0.16.0
0.15.0
Notice
The release has some improvements in model generation.
The generated model names or the structure will be changed.
What's Changed
- Remove unneeded number suffix when the same name model exists in another module by @koxudaxi in #973
- Ignore duplicate name field on allOf by @koxudaxi in #974
- Improve model deletion by @koxudaxi in #976
- Refactor process after parse by @koxudaxi in #977
- Support JSONSchema items is boolean by @koxudaxi in #979
- Support required in allof item by @koxudaxi in #981
- Improve detection additionalProperties in JSONSchema Object by @koxudaxi in #982
- Fix nullable object by @koxudaxi in #987
- Support const by @koxudaxi in #989
- Fix duplicated nested optional by @koxudaxi in #990
Full Changelog: 0.14.1...0.15.0
0.14.1
What's Changed
- Fix deprecation warnings around "copy_on_model_validation" by @Dominic-Walther in #927
- Fix dev black version for macos by @koxudaxi in #941
- Add support for tags and include responses without content by @Aedial in #924
- Fix indents for multi-line docstrings by @Dominic-Walther in #938
- Allow to pass extra fields using
--allow-extra-fields
by @fgebhart in #949 - Fix resolving id by @koxudaxi in #963
- fix: template handling of extra template data by @auphofBSF in #861
- Avoid field name beginning with an underscore by @ronlib in #962
- Support --special-field-name-prefix option by @koxudaxi in #966
- Fix allOf with common prefix and $ref by @azatoth in #968
- Update poetry.lock by @fsecada01 in #936
- Add collapse root model feature by @i404788 in #933
- add --capitalise-enum-members option by @koxudaxi in #970
- Fix no generated enum in array by @koxudaxi in #971
New Contributors
- @Aedial made their first contribution in #924
- @fgebhart made their first contribution in #949
- @lgtm-com made their first contribution in #908
- @auphofBSF made their first contribution in #861
- @ronlib made their first contribution in #962
- @azatoth made their first contribution in #968
- @fsecada01 made their first contribution in #936
- @i404788 made their first contribution in #933
Full Changelog: 0.14.0...0.14.1
0.14.0
What's Changed
- Drop python3.6 support by @koxudaxi in #887
- Support Python 3.11 by @koxudaxi in #898
- Show help when no input by @koxudaxi in #911
- Add docker image by @koxudaxi in #919
- Implement field descriptions as docstrings by @Dominic-Walther in #918
- Fix push docker flow by @koxudaxi in #925
New Contributors
- @Dominic-Walther made their first contribution in #918
Full Changelog: 0.13.5...0.14.0