Datamodel-code-generator

Latest version: v0.25.6

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

Scan your dependencies

Page 2 of 31

0.25.0

What's Changed
* Improve collapse_root_models for list by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1700
* Improve one of any of models creation by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1682
* Change example to examples in pydantic_v2 by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1705
* Enable --set-default-enum-member for dataclasses by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1706
* Fix --use-default of allOf by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1708
* Beta version graphql by denisart in https://github.com/koxudaxi/datamodel-code-generator/pull/1707
* Add a few tests graphql by denisart in https://github.com/koxudaxi/datamodel-code-generator/pull/1722
* Add additional imports to cli by denisart in https://github.com/koxudaxi/datamodel-code-generator/pull/1723
* Fix long description rendering in graphql by denisart in https://github.com/koxudaxi/datamodel-code-generator/pull/1730
* Add custom formatters by denisart in https://github.com/koxudaxi/datamodel-code-generator/pull/1733
* with pydantic v2, use pydantic.AwareDatetime instead of datetime by gjcarneiro in https://github.com/koxudaxi/datamodel-code-generator/pull/1735
* Support discriminators in array items by mesfahanisimscale in https://github.com/koxudaxi/datamodel-code-generator/pull/1458
* Fix default for annotated field in pydantic v2 by i404788 in https://github.com/koxudaxi/datamodel-code-generator/pull/1498

Breaking Changes
* Remove the unneeded `Item` suffix of `anyOf` and `oneOf` model names by https://github.com/koxudaxi/datamodel-code-generator/pull/1682
* maybe change other model names by the changes
* Change `datetime.datetime` to `pydantic.AwareDatetime` in pydantic v2 by https://github.com/koxudaxi/datamodel-code-generator/pull/1735

New Contributors
* denisart made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1707
* gjcarneiro made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1735
* mesfahanisimscale made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1458

**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.24.2...0.25.0

0.24.2

What's Changed
* Fix join_url bug when httpx 2.4.0 or later by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1699


**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.24.1...0.24.2

0.24.1

What's Changed
* Add pyyaml by mmwinther in https://github.com/koxudaxi/datamodel-code-generator/pull/1698

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

**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.24.0...0.24.1

0.24.0

What's Changed
* Fix UnionIntFloat json schema generation. by jboulmier in https://github.com/koxudaxi/datamodel-code-generator/pull/1669
* Move pysnooper to optional by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1672
* use tomllib in 3.11 or later by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1674
* Change --validation option to optional by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1675
* Remove black in lint.sh and format.sh by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1676
* Resolve ref before adding references for allOf items by pimzero in https://github.com/koxudaxi/datamodel-code-generator/pull/1678
* Change master to main by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1681
* Fix error when JsonSchemaObject is bool with Pydantic v2 by sbussard-vareto in https://github.com/koxudaxi/datamodel-code-generator/pull/1691

Breaking Changes
* The version drop `pysnooper`, `prance`, `openapi-spec-validator` from the default dependencies list.
If you want to use `--debug` and ` --validation`, please add the extra option when you install packages `datamodel-code-generator[debug]` and `datamodel-code-generator[validation]`

Depreacated
* `--validation` option will be removed in the new future. please use other tools to validate OpenAPI Schema.

New Contributors
* jboulmier made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1669
* pimzero made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1678
* sbussard-vareto made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1691

**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.23.0...0.24.0

0.23.0

What's Changed
* Support $defs for Draft 2019-09 by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1630
* Update openapi-spec-validator max version by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1633
* Fix list default in dataclass by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1632
* Support python 3.12 by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1612
* Fix `--remove-special-field-name-prefix` + fields (e.g. enum members) starting with numbers by lord-haffi in https://github.com/koxudaxi/datamodel-code-generator/pull/1654
* Fix generation of nullable array items by tfausten in https://github.com/koxudaxi/datamodel-code-generator/pull/1648
* Move nullable logic to openapi parser by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1655
* Add missing space to README.md by joakimnordling in https://github.com/koxudaxi/datamodel-code-generator/pull/1660
* Improve model naming by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1663
* Fix exponent in minimum by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1664
* Remove constraint on anyurl by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1665
* Improve discriminator by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1666

New Contributors
* lord-haffi made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1654
* tfausten made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1648
* joakimnordling made their first contribution in https://github.com/koxudaxi/datamodel-code-generator/pull/1660

**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.22.1...0.23.0

0.22.1

What's Changed
* Ignore broken pydantic version 2.4.0 by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1593
* Avoid pydantic ClassVar bug by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1603
* Fix msgspec pattern and optional annotated type by indrat in https://github.com/koxudaxi/datamodel-code-generator/pull/1606
* Fix missing constr import issue by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1609
* Fix msgspec root import by koxudaxi in https://github.com/koxudaxi/datamodel-code-generator/pull/1611


**Full Changelog**: https://github.com/koxudaxi/datamodel-code-generator/compare/0.22.0...0.22.1

Page 2 of 31

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.