Datamodel-code-generator

Latest version: v0.26.5

Safety actively analyzes 702474 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 33

0.18.1

What's Changed
* default_factory field should be non-optional by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1254
* add --use-one-literal-as-default by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1256
* (🎁) Include `py.typed` to mark project as typed by KotlinIsland in https://github.com/koxudaxi/datamodel-code-generator/pull/1259
* Fix min/max on number fields truncated by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1266
* Add use_operation_id_as_name by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1267
* Add datetime to number and integer by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1268


**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.18.0...0.18.1

0.18.0

What's Changed
* Update __all__ to expose needed types by ShaneMurphy2 in https://github.com/koxudaxi/datamodel-code-generator/pull/1230
* Fix max min round issue by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1235
* Fix strict nullable for default factory by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1236
* Improve union types by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1241
* Support nested all_of by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1242
* (🎁) bump some dependencies by KotlinIsland in https://github.com/koxudaxi/datamodel-code-generator/pull/1245
* (🎁) log file type when `--input-file-type` is auto. by KotlinIsland in https://github.com/koxudaxi/datamodel-code-generator/pull/1248
* (🎁) remove typed-ast dependency by KotlinIsland in https://github.com/koxudaxi/datamodel-code-generator/pull/1246
* (🎁) reference config option to specify input type by KotlinIsland in https://github.com/koxudaxi/datamodel-code-generator/pull/1250
* (🎁) infer data vs schema when `--input-file-type` is auto by KotlinIsland in https://github.com/koxudaxi/datamodel-code-generator/pull/1249

New Contributors
* ShaneMurphy2 made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1230

**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.17.2...0.18.0

0.17.2

What's Changed
* Remove union operator error when target-python is 3.9 or early version by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1094
* Add ruff by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1095
* Fix only required anyof oneof by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1104
* Update mypy version to 1.0.0 by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1105
* fix mypy version to >=1.0.1,<1.1.0 by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1162
* Docs: typo by KPLauritzen in https://github.com/koxudaxi/datamodel-code-generator/pull/1153
* Fix typo: `docuemnt` -> `document` by kamyar in https://github.com/koxudaxi/datamodel-code-generator/pull/1179
* feat: add support for custom file header by Niraj-Kamdar in https://github.com/koxudaxi/datamodel-code-generator/pull/1164
* Exclude fields with default_factory from --use-default-kwarg by vogre in https://github.com/koxudaxi/datamodel-code-generator/pull/1186
* Bugfix: with deeply nested modules: empty paths did not get an __init__.py file created by dataway in https://github.com/koxudaxi/datamodel-code-generator/pull/1187
* Fix url $id by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1214
* (🎁) deps: make typed-ast optional by KotlinIsland in https://github.com/koxudaxi/datamodel-code-generator/pull/1222

New Contributors
* KPLauritzen made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1153
* kamyar made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1179
* Niraj-Kamdar made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1164
* vogre made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1186
* dataway made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1187
* KotlinIsland made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1222

**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.17.1...0.17.2

0.17.1

What's Changed
* Change custom template dir structure by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1070
* Support enum as literal in root model by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1073
* Improve duplicate model detection by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1076
* Fix reference same hierarchy directory by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1082
* Fix wrong overwrite field default by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1085
* Fix mro field name on enum by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1069
* OpenAPI - Add support for query parameter model generation by hambrosia in https://github.com/koxudaxi/datamodel-code-generator/pull/1083
* Support dataclasses.dataclass by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1068

New Contributors
* hambrosia made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1083

**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.17.0...0.17.1

0.17.0

What's Changed
* Add `--keep-model-order` by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1043
* Support openapi `discriminator` by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1045
* Fix referenced `patternProperties` by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1046
* Support `default_factory` by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1047
* Remove duplicate model by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1048
* Fix naming logic for duplicate name model by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1049
* Proposal for adding version metadata to header section by ghandic in https://github.com/koxudaxi/datamodel-code-generator/pull/1053
* Refactor set-default-enum-member by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1057
* Support list default enum member by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1058
* Support default object value by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1060
* Fix cli option name --use_non_positive_negative_number_constrained_types by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1064
* Add `--field-extra-keys-without-x-prefix` by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1066

New Contributors
* ghandic made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1053

**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.16.1...0.17.0

0.16.1

What's Changed
* Change default value to None by JensHeinrich in https://github.com/koxudaxi/datamodel-code-generator/pull/1028
* Support json pointer to array by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1030
* Fix/remove not none arg parse defaults by JensHeinrich in https://github.com/koxudaxi/datamodel-code-generator/pull/1029
* Add --use-default-kwarg option for better type checker compatibility by zackyancey in https://github.com/koxudaxi/datamodel-code-generator/pull/1034
* add --remove-special-field-name-prefix by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1033
* Fix snake_case generation by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1037
* Add --disable-warnings by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1038
* Remove dummy field by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1039

New Contributors
* JensHeinrich made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1028
* zackyancey made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1034

**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.16.0...0.16.1

Page 6 of 33

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.