Changelogs » Datamodel-code-generator

PyUp Safety actively tracks 334,184 Python packages for vulnerabilities and notifies you when to upgrade.

Datamodel-code-generator

0.11.13

- Support pydantic 1.5.1 [537]

0.11.12

- ignore broken regex version [519]
  - Support --use-annotated [516]
  - Support --http_headers for authorization [511]
  - Add --use-title-as-name [510]
  - Support patternProperties [509]
  - Fix reuse_model for nested model [505]
  - Improve supporting json_pointer [503]

0.11.11

- Fix version option [499]

0.11.10

- Fix invalid generated code with openapi validator [496]
  - Support wrap_string_literal [493]
  - Use Poetry [475]

0.11.9

- Fix setup.py [473]
  - Support false on additionalProperties [472] by reb00ter
  - Support jinja2 version3 [468]
  - Support PEP-517 [467]
  - Validate pydantic field name [465]
  
  Improve OpenAPI Parser
  - Refactor parse_ref [449]
  - Fix path objects in openapi [459]
  - Fix path parameters [460]
  - Improve resolving response model [461]
  - Improve OpenAPI parser [462]
  
  Thanks to reb00ter

0.11.8

- set default base class when removed all base class [448 ]

0.11.7

- Fix inline enum only string literal [445] by goodoldneon
  
  Thanks to goodoldneon
  
  0.2.11+backport-1
  - backport improve_x_enum_varnames

0.11.6

- Support customTypePath [436]

0.11.5

- Don't generate enum models that have been swapped by a reused model [430] by shnups
  - Pass custom template dir when creating enums [427] by shnups
  
  Thanks to shnups

0.11.4

- Handle nested nullable enums [425] by philipbjorge
  
  Thanks to philipbjorge

0.11.3

- Fix 420 [421] by goodoldneon
  (IPv4Address doesn't import from pydantic.validators [420])
  
  Thanks to goodoldneon

0.11.2

- Support field extras keys [416]

0.11.1

- Fix get_relative_path subfolders with same names [415] by siame
  
  Thanks to siame

0.11.0

- Improve parsing additionalProperties [412]
  - Improve parsing complex object [411]
  
  breaking change
  The detail is in 413

0.10.3

- Support complex `oneOf` and `anyOf` [410]

0.10.2

- Improve resolving relative path [406]
  - Refactor parse_enum [405]

0.10.1

- Improve imports in DataType [403]
  - Support self reference array [402]
  - Support allOf with object [401]
  - Improve generating model name [400]

0.10.0

- Support time and idn-email format 397
  - Support custom_class_name_generator 396
  - Reduce unnecessary downloading 395
  - Fix resolving ref with root id 394
  - Fix modular generated models 393
  - Refactor module_name 391
  - Remove append_result 390
  - Remove field name validator 389
  - Fix import style 388
  - Fix duplicate field name 386
  
  breaking change
  The detail is in 398

0.9.4

- Refactor data_type_manager [384]
  - Fix to parse enum correctly [383]
  - Allow using Literal in python 3.7 via typing_extensions backport [382] by yuyupopo
  - Update dependencies [378]
  
  Thanks to yuyupopo

0.9.3

- Improve resolving module names [377]
  - Refactor DataModel [376]
  - Improve code style [375]

0.9.2

- Improve typing [373]
  - Fix x-enum-varnames for string [372]

0.9.1

- Escape special characters in regex [370]
  - Support strict types [369]
  - Add --disable-appending-item-suffix [368]
  - Strip constraints on self-reference [367]
  - Fix custom_root_model [366]
  - Support HTTP URL as an input [365]

0.9.0

- Fix model name which is same imported_name [364]
  - Fix broken update_forward_refs [363]
  - Improve coding style [362]
  - Change all imports return type to iterator[Import] [361]
  - Lazy creating imports and unresolved_types [360]
  - Resolve parent model by data_type [359]
  - Model properties are generated when rendering [358]
  - Refactoring model structure [354]
  
  breaking change
  The detail is in https://github.com/koxudaxi/datamodel-code-generator/issues/357

0.8.3

- Support nested json_pointer [352]

0.8.2

- Generate function supports relative input path [351]
  - Support nullable enum [350]

0.8.1

- Fix parsing ref on root model [346]
  - Change regex to raw strings [345]

0.8.0

- Ignore duplicate object of allOf [343]
  - Improve constrained type in array [342]
  - Improve complex additional properties [341]
  - Add alias attribute on DataType [340]
  
  breaking change
  The detail is in 344

0.7.3

- Support enable_faux_immutability [338]
  - Support generic_container_types [336]
  - Fix oneOf [335]

0.7.2

- Improve strict-nullable [330]