Releases: koxudaxi/datamodel-code-generator
Releases · koxudaxi/datamodel-code-generator
0.25.4
What's Changed
- Fix object instance comparison. Add test. by @jamesbezuk in #1849
- Added graphql to
--input-file-type
options by @JoeHCQ1 in #1846 - Add codespell configuration, workflow, pre-commit config and fix few typos by @yarikoptic in #1842
- has_constraints should return true for falsy values by @ericvandever in #1844
- Fix black module error when 19.10b0 is installed by @koxudaxi in #1855
New Contributors
- @jamesbezuk made their first contribution in #1849
- @JoeHCQ1 made their first contribution in #1846
- @yarikoptic made their first contribution in #1842
- @ericvandever made their first contribution in #1844
Full Changelog: 0.25.3...0.25.4
0.25.3
What's Changed
- Enable ability to use custom
JsonSchemaObject
inJsonSchemaParser
by @WilliamJamieson in #1783 - Stop modifying behavior of yaml on load by @gluap in #1826
- Fix bug with oneOf and const #1787 by @shadchin in #1791
- format: support black >=24 by @airwoodix in #1829
New Contributors
- @WilliamJamieson made their first contribution in #1783
- @gluap made their first contribution in #1826
- @shadchin made their first contribution in #1791
Full Changelog: 0.25.2...0.25.3
0.25.2
What's Changed
- Fix original_name validation by @koxudaxi in #1755
- Use const as default by @mmwinther in #1767
- Support json_schema_extra by @koxudaxi in #1782
- Improve json_schema_extra to pydanticv2 Field with readOnly/writeOnly by @mikedavidson-evertz in #1778
- Fix un-imported literal when generate discriminator by @koxudaxi in #1765
New Contributors
- @mikedavidson-evertz made their first contribution in #1778
Full Changelog: 0.25.1...0.25.2
0.25.1
0.25.0
What's Changed
- Improve collapse_root_models for list by @koxudaxi in #1700
- Improve one of any of models creation by @koxudaxi in #1682
- Change example to examples in pydantic_v2 by @koxudaxi in #1705
- Enable --set-default-enum-member for dataclasses by @koxudaxi in #1706
- Fix --use-default of allOf by @koxudaxi in #1708
- Beta version graphql by @denisart in #1707
- Add a few tests graphql by @denisart in #1722
- Add additional imports to cli by @denisart in #1723
- Fix long description rendering in graphql by @denisart in #1730
- Add custom formatters by @denisart in #1733
- with pydantic v2, use pydantic.AwareDatetime instead of datetime by @gjcarneiro in #1735
- Support discriminators in array items by @mesfahanisimscale in #1458
- Fix default for annotated field in pydantic v2 by @i404788 in #1498
Breaking Changes
- Remove the unneeded
Item
suffix ofanyOf
andoneOf
model names by #1682- maybe change other model names by the changes
- Change
datetime.datetime
topydantic.AwareDatetime
in pydantic v2 by #1735
New Contributors
- @denisart made their first contribution in #1707
- @gjcarneiro made their first contribution in #1735
- @mesfahanisimscale made their first contribution in #1458
Full Changelog: 0.24.2...0.25.0
0.24.2
0.24.1
What's Changed
- Add pyyaml by @mmwinther in #1698
New Contributors
- @mmwinther made their first contribution in #1698
Full Changelog: 0.24.0...0.24.1
0.24.0
What's Changed
- Fix UnionIntFloat json schema generation. by @jboulmier in #1669
- Move pysnooper to optional by @koxudaxi in #1672
- use tomllib in 3.11 or later by @koxudaxi in #1674
- Change --validation option to optional by @koxudaxi in #1675
- Remove black in lint.sh and format.sh by @koxudaxi in #1676
- Resolve ref before adding references for allOf items by @pimzero in #1678
- Change master to main by @koxudaxi in #1681
- Fix error when JsonSchemaObject is bool with Pydantic v2 by @sbussard-vareto in #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 packagesdatamodel-code-generator[debug]
anddatamodel-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 #1669
- @pimzero made their first contribution in #1678
- @sbussard-vareto made their first contribution in #1691
Full Changelog: 0.23.0...0.24.0
0.23.0
What's Changed
- Support $defs for Draft 2019-09 by @koxudaxi in #1630
- Update openapi-spec-validator max version by @koxudaxi in #1633
- Fix list default in dataclass by @koxudaxi in #1632
- Support python 3.12 by @koxudaxi in #1612
- Fix
--remove-special-field-name-prefix
+ fields (e.g. enum members) starting with numbers by @lord-haffi in #1654 - Fix generation of nullable array items by @tfausten in #1648
- Move nullable logic to openapi parser by @koxudaxi in #1655
- Add missing space to README.md by @joakimnordling in #1660
- Improve model naming by @koxudaxi in #1663
- Fix exponent in minimum by @koxudaxi in #1664
- Remove constraint on anyurl by @koxudaxi in #1665
- Improve discriminator by @koxudaxi in #1666
New Contributors
- @lord-haffi made their first contribution in #1654
- @tfausten made their first contribution in #1648
- @joakimnordling made their first contribution in #1660
Full Changelog: 0.22.1...0.23.0
0.22.1
What's Changed
- Ignore broken pydantic version 2.4.0 by @koxudaxi in #1593
- Avoid pydantic ClassVar bug by @koxudaxi in #1603
- Fix msgspec pattern and optional annotated type by @indrat in #1606
- Fix missing constr import issue by @koxudaxi in #1609
- Fix msgspec root import by @koxudaxi in #1611
Full Changelog: 0.22.0...0.22.1