Skip to content

Update datamodel-code-generator requirement from <0.57,>=0.56.1 to >=0.56.1,<0.59#587

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/datamodel-code-generator-gte-0.56.1-and-lt-0.59
Open

Update datamodel-code-generator requirement from <0.57,>=0.56.1 to >=0.56.1,<0.59#587
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/datamodel-code-generator-gte-0.56.1-and-lt-0.59

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 26, 2026

Updates the requirements on datamodel-code-generator to permit the latest version.

Release notes

Sourced from datamodel-code-generator's releases.

0.58.0

New Features

  • Added --serialization-aliases for Pydantic v2 serialization alias mapping. (#3146)
  • Added --openapi-include-info-version to emit OPENAPI_INFO_VERSION from OpenAPI info.version. (#3176)
  • Added --use-object-type to generate object instead of Any for unspecified JSON Schema object and array values. (#3177)

Breaking Changes

Code Generation Changes

  • Duplicate validation aliases are now deduplicated in generated Pydantic v2 AliasChoices - Fields that previously generated duplicate entries such as AliasChoices('endDate', 'end_date', 'endDate') now generate each alias once. Runtime behavior is equivalent, but exact generated output changes. (#3146)
  • JSON Schema edge-case fixes change generated output for affected schemas - Schema-valued additionalProperties/unevaluatedProperties, const: null, complex enum values, all-false patternProperties, non-string propertyNames, boolean array item schemas, contains, minProperties/maxProperties, and enum references through allOf now generate more accurate annotations or constraints. Users with snapshots or exact-output checks may see diffs. (#3167)
  • Duplicate TypedDict import fix changes generated output - Mixed closed/open TypedDict generation no longer imports TypedDict from both typing and typing_extensions; TypedDict is kept only where required. (#3155)
  • Schema-derived payload fixes change generated output for affected schemas - Forward-referenced dict key unions, indirect $ref types in allOf, additionalProperties with $ref, heterogeneous root constraints, and unresolved discriminator fields now generate more valid types/fields. (#3168)
  • Primitive allOf schemas now generate root-style payload types - Primitive-only allOf and top-level allOf combined with oneOf/anyOf now generate RootModel/root payload types instead of empty or object-like models. Code instantiating the previous generated classes may need updates. (#3169, #3171)
  • Discriminator literal generation changed for some enum mappings - Discriminator mappings now use the resolved literal values for enum-backed mappings, including non-string values where applicable. (#3074, #3170)
  • multipleOf intersections in allOf now use the least common multiple - For example, multipleOf: 5 combined with multipleOf: 10 now generates multiple_of=10 instead of incorrectly keeping the first value. Decimal multiples are handled similarly. (#3172)
  • Schema metadata fields are now preserved automatically - contentEncoding, contentMediaType, contentSchema, externalDocs, and xml are included in generated json_schema_extra when present in the input schema, even without --model-extra-keys. (#3175)

Error Handling Changes

  • --output-datetime-class now rejects incompatible TypedDict and Dataclass output combinations - Pydantic-specific datetime classes with typing.TypedDict, and incompatible dataclass API usage, now raise errors instead of silently producing fallback output. (#3155, #3169)
  • Boolean false inside allOf now raises SchemaParseError - Unsatisfiable allOf branches are reported instead of generating incorrect models. false branches in oneOf/anyOf are filtered where appropriate. (#3168)

What's Changed

... (truncated)

Changelog

Sourced from datamodel-code-generator's changelog.

0.58.0 - 2026-05-25

New Features

  • Added --serialization-aliases for Pydantic v2 serialization alias mapping. (#3146)
  • Added --openapi-include-info-version to emit OPENAPI_INFO_VERSION from OpenAPI info.version. (#3176)
  • Added --use-object-type to generate object instead of Any for unspecified JSON Schema object and array values. (#3177)

Breaking Changes

Code Generation Changes

  • Duplicate validation aliases are now deduplicated in generated Pydantic v2 AliasChoices - Fields that previously generated duplicate entries such as AliasChoices('endDate', 'end_date', 'endDate') now generate each alias once. Runtime behavior is equivalent, but exact generated output changes. (#3146)
  • JSON Schema edge-case fixes change generated output for affected schemas - Schema-valued additionalProperties/unevaluatedProperties, const: null, complex enum values, all-false patternProperties, non-string propertyNames, boolean array item schemas, contains, minProperties/maxProperties, and enum references through allOf now generate more accurate annotations or constraints. Users with snapshots or exact-output checks may see diffs. (#3167)
  • Duplicate TypedDict import fix changes generated output - Mixed closed/open TypedDict generation no longer imports TypedDict from both typing and typing_extensions; TypedDict is kept only where required. (#3155)
  • Schema-derived payload fixes change generated output for affected schemas - Forward-referenced dict key unions, indirect $ref types in allOf, additionalProperties with $ref, heterogeneous root constraints, and unresolved discriminator fields now generate more valid types/fields. (#3168)
  • Primitive allOf schemas now generate root-style payload types - Primitive-only allOf and top-level allOf combined with oneOf/anyOf now generate RootModel/root payload types instead of empty or object-like models. Code instantiating the previous generated classes may need updates. (#3169, #3171)
  • Discriminator literal generation changed for some enum mappings - Discriminator mappings now use the resolved literal values for enum-backed mappings, including non-string values where applicable. (#3074, #3170)
  • multipleOf intersections in allOf now use the least common multiple - For example, multipleOf: 5 combined with multipleOf: 10 now generates multiple_of=10 instead of incorrectly keeping the first value. Decimal multiples are handled similarly. (#3172)
  • Schema metadata fields are now preserved automatically - contentEncoding, contentMediaType, contentSchema, externalDocs, and xml are included in generated json_schema_extra when present in the input schema, even without --model-extra-keys. (#3175)

Error Handling Changes

  • --output-datetime-class now rejects incompatible TypedDict and Dataclass output combinations - Pydantic-specific datetime classes with typing.TypedDict, and incompatible dataclass API usage, now raise errors instead of silently producing fallback output. (#3155, #3169)
  • Boolean false inside allOf now raises SchemaParseError - Unsatisfiable allOf branches are reported instead of generating incorrect models. false branches in oneOf/anyOf are filtered where appropriate. (#3168)

What's Changed

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [datamodel-code-generator](https://github.com/koxudaxi/datamodel-code-generator) to permit the latest version.
- [Release notes](https://github.com/koxudaxi/datamodel-code-generator/releases)
- [Changelog](https://github.com/koxudaxi/datamodel-code-generator/blob/main/CHANGELOG.md)
- [Commits](koxudaxi/datamodel-code-generator@0.56.1...0.58.0)

---
updated-dependencies:
- dependency-name: datamodel-code-generator
  dependency-version: 0.58.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants