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 1 of 33

0.26.5

What's Changed
* typo: Fix 'Allow to' sentence. by jas4711 in https://github.com/koxudaxi/datamodel-code-generator/pull/2240
* Fix pyproject.toml detection when `[tool.black]` section is omitted by otonnesen in https://github.com/koxudaxi/datamodel-code-generator/pull/2242
* Update readme by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/2258
* Escape null character by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/2257
* enum find member quote handling by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/2259
* fix Literal imports by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/2260

New Contributors
* jas4711 made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/2240
* otonnesen made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/2242

**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.26.4...0.26.5

0.26.4

What's Changed
* remove poetry-lock in .pre-commit-config.yaml by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/2184
* Add --no-alias by nickyoung-github in https://github.com/koxudaxi/datamodel-code-generator/pull/2183
* fix: Skip empty files by jackylamhk in https://github.com/koxudaxi/datamodel-code-generator/pull/2157
* fix(parser): custom_template_dir not passed to data_model_type for OpenAPIScope.Parameters by hambergerpls in https://github.com/koxudaxi/datamodel-code-generator/pull/2166
* feat: add support to msgspec for kw_only=True by indrat in https://github.com/koxudaxi/datamodel-code-generator/pull/2162
* fix: Preserve class names when generating models from JSON Schema 202… by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/2185
* docs: add `uri` as a supported data type by joscha in https://github.com/koxudaxi/datamodel-code-generator/pull/2217
* Fix OpenAPI test case failure in fresh clone by ncoghlan in https://github.com/koxudaxi/datamodel-code-generator/pull/2214
* feat: add test for Python3.13 by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/2219
* Update GitHub Actions to use latest action versions by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/2222
* Add support for Python 3.13 in project metadata by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/2223
* Default datetime class and python version by thorwhalen in https://github.com/koxudaxi/datamodel-code-generator/pull/2196
* Avoid sharing extra template state between models by ncoghlan in https://github.com/koxudaxi/datamodel-code-generator/pull/2215
* fix: OpenAPI 3.1: `required` with `type: [array, null]` by joscha in https://github.com/koxudaxi/datamodel-code-generator/pull/2216
* feat: support InputFileType.Json and InputFileType.Dict by XieJiSS in https://github.com/koxudaxi/datamodel-code-generator/pull/2165

New Contributors
* nickyoung-github made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/2183
* jackylamhk made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/2157
* hambergerpls made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/2166
* joscha made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/2217
* ncoghlan made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/2214
* thorwhalen made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/2196
* XieJiSS made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/2165

**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.26.3...0.26.4

0.26.3

What's Changed
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/koxudaxi/datamodel-code-generator/pull/2096
* feat: add msgspec support for `--output-datetime-class datetime` by indrat in https://github.com/koxudaxi/datamodel-code-generator/pull/2124
* Support `use_enum_values` in `ConfigDict` by nbro10 in https://github.com/koxudaxi/datamodel-code-generator/pull/2134
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/koxudaxi/datamodel-code-generator/pull/2131
* Fix discriminator mapping resolution in schemas with parent-child hierarchy by sternakt in https://github.com/koxudaxi/datamodel-code-generator/pull/2145
* feat: msgspec discriminated unions by indrat in https://github.com/koxudaxi/datamodel-code-generator/pull/2081
* Fix content-hash; add pre-commit-check for poetry. by rafalkrupinski in https://github.com/koxudaxi/datamodel-code-generator/pull/2142

New Contributors
* nbro10 made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/2134
* sternakt made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/2145
* rafalkrupinski made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/2142

**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.26.2...0.26.3

0.26.2

What's Changed
* New CLI option --output-datetime-class 1996 by archetipo in https://github.com/koxudaxi/datamodel-code-generator/pull/2100
* dataclass generator improvements by anis-campos in https://github.com/koxudaxi/datamodel-code-generator/pull/2102

New Contributors
* archetipo made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/2100
* anis-campos made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/2102

**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.26.1...0.26.2

0.26.1

What's Changed
* feat: support string format: duration for pydantic/msgspec by indrat in https://github.com/koxudaxi/datamodel-code-generator/pull/2084
* Change ordering of actions by prmshepherd in https://github.com/koxudaxi/datamodel-code-generator/pull/1961
* Fix an exact import bug with deeper nesting by AniketDas-Tekky in https://github.com/koxudaxi/datamodel-code-generator/pull/2089

New Contributors
* prmshepherd made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1961
* AniketDas-Tekky made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/2089

**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.26.0...0.26.1

0.26.0

What's Changed
* Drop support python 3.7 on runtime by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/2060
* Change default target python version to 3.8 by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/2061
* Add command help update script by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/2064
* Support union_mode by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/2065
* Fix default encoding as_utf-8 on command help by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/2066
* Fix --use-annotated for pydantic v2 by bpsoos in https://github.com/koxudaxi/datamodel-code-generator/pull/2033
* fix missing field descriptions in graphql by benobytes in https://github.com/koxudaxi/datamodel-code-generator/pull/2074


Breaking Changes
* Drop support python 3.7 on runtime by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/2060
* Change default target python version to 3.8 by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/2061

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

**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.25.9...0.26.0

Page 1 of 33

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.