Pydantic model and dataclasses.dataclass generator for easy conversion of JSON, OpenAPI, JSON Schema, and YAML data sources.
BaseClassDataType
by @rshah-evertz in https://github.com/koxudaxi/datamodel-code-generator/pull/1862
Full Changelog: https://github.com/koxudaxi/datamodel-code-generator/compare/0.25.5...0.25.6
Full Changelog: https://github.com/koxudaxi/datamodel-code-generator/compare/0.25.4...0.25.5
--input-file-type
options by @JoeHCQ1 in https://github.com/koxudaxi/datamodel-code-generator/pull/1846
Full Changelog: https://github.com/koxudaxi/datamodel-code-generator/compare/0.25.3...0.25.4
JsonSchemaObject
in JsonSchemaParser
by @WilliamJamieson in https://github.com/koxudaxi/datamodel-code-generator/pull/1783
Full Changelog: https://github.com/koxudaxi/datamodel-code-generator/compare/0.25.2...0.25.3
Full Changelog: https://github.com/koxudaxi/datamodel-code-generator/compare/0.25.1...0.25.2
Full Changelog: https://github.com/koxudaxi/datamodel-code-generator/compare/0.25.0...0.25.1
Item
suffix of anyOf
and oneOf
model names by https://github.com/koxudaxi/datamodel-code-generator/pull/1682
datetime.datetime
to pydantic.AwareDatetime
in pydantic v2 by https://github.com/koxudaxi/datamodel-code-generator/pull/1735
Full Changelog: https://github.com/koxudaxi/datamodel-code-generator/compare/0.24.2...0.25.0
Full Changelog: https://github.com/koxudaxi/datamodel-code-generator/compare/0.24.1...0.24.2
Full Changelog: https://github.com/koxudaxi/datamodel-code-generator/compare/0.24.0...0.24.1
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]
--validation
option will be removed in the new future. please use other tools to validate OpenAPI Schema.Full Changelog: https://github.com/koxudaxi/datamodel-code-generator/compare/0.23.0...0.24.0