Releases: koxudaxi/datamodel-code-generator
Releases · koxudaxi/datamodel-code-generator
0.25.6
What's Changed
- Fix missing Union by @koxudaxi in #1905
- fix(ModuleImports): This PR fixes the module import resolver for module of type
BaseClassDataType
by @rshah-evertz in #1862 - Support http query parameters by @kevin-lithic in #1911
- feat: add examples to meta fields by @nampereira in #1899
- Fix Rootmodel template with reuse-model by @atti92 in #1902
- Support pendulum by @kevin-lithic in #1914
New Contributors
- @rshah-evertz made their first contribution in #1862
- @kevin-lithic made their first contribution in #1911
- @nampereira made their first contribution in #1899
- @atti92 made their first contribution in #1902
Full Changelog: 0.25.5...0.25.6
0.25.5
What's Changed
- Fix overriden required by @fft001 in #1868
- Added support for passing pathlib.Path as a format to JSON schema by @brandonsorensen in #1879
- Make discriminators work with multiple keys pointing to the same schema by @ldej in #1885
New Contributors
- @fft001 made their first contribution in #1868
- @brandonsorensen made their first contribution in #1879
- @ldej made their first contribution in #1885
Full Changelog: 0.25.4...0.25.5
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