Skip to content

Bump datamodel-code-generator from 0.58.0 to 0.59.0#824

Merged
FedericoNegri merged 1 commit into
mainfrom
dependabot/pip/datamodel-code-generator-0.59.0
Jun 12, 2026
Merged

Bump datamodel-code-generator from 0.58.0 to 0.59.0#824
FedericoNegri merged 1 commit into
mainfrom
dependabot/pip/datamodel-code-generator-0.59.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 11, 2026

Copy link
Copy Markdown
Contributor

Bumps datamodel-code-generator from 0.58.0 to 0.59.0.

Release notes

Sourced from datamodel-code-generator's releases.

0.59.0

Breaking Changes

Code Generation Changes

  • Pattern key constraints now include propertyNames constraints - When a JSON Schema uses both patternProperties and propertyNames, the generated dict key type now merges constraints from both. Previously, propertyNames constraints such as minLength, maxLength, and $ref could be ignored when patternProperties was present. Regenerated code may produce stricter key types and reject data that was previously accepted by less-strict generated models. (#3192)
  • Typed additionalProperties now generates a typed __pydantic_extra__ field for Pydantic v2 models - When a JSON Schema defines schema-valued additionalProperties, generated Pydantic v2 models now include __pydantic_extra__: dict[str, <type>]. Previously, these models only allowed extra fields without typing their values. This changes generated output and makes Pydantic validate extra field values at runtime. (#3205)
  • Dataclass field ordering with --use-annotated may change - Dataclass field assignment detection now accounts for constraints moved into Annotated[...]. Generated dataclass fields may be reordered so fields without defaults come before fields with defaults. (#3203)

Default Behavior Changes

  • Auto-detection (--input-file-type auto) now recognizes AsyncAPI, Avro, and Protocol Buffers inputs - Inputs that previously fell back to JSON/YAML handling or failed detection may now be detected as one of these formats. (#3194, #3195, #3198)

Compatibility Notes

  • The temporary Pydantic minimum-version change from pydantic>=2,<3 to pydantic>=2.6,<3 was reverted before this release. The final dependency range for Python < 3.14 remains pydantic>=2,<3. (#3210, #3215)

What's Changed

New Contributors

Full Changelog: koxudaxi/datamodel-code-generator@0.58.0...0.59.0

Changelog

Sourced from datamodel-code-generator's changelog.

0.59.0 - 2026-05-29

Breaking Changes

Code Generation Changes

  • Pattern key constraints now include propertyNames constraints - When a JSON Schema uses both patternProperties and propertyNames, the generated dict key type now merges constraints from both. Previously, propertyNames constraints such as minLength, maxLength, and $ref could be ignored when patternProperties was present. Regenerated code may produce stricter key types and reject data that was previously accepted by less-strict generated models. (#3192)
  • Typed additionalProperties now generates a typed __pydantic_extra__ field for Pydantic v2 models - When a JSON Schema defines schema-valued additionalProperties, generated Pydantic v2 models now include __pydantic_extra__: dict[str, <type>]. Previously, these models only allowed extra fields without typing their values. This changes generated output and makes Pydantic validate extra field values at runtime. (#3205)
  • Dataclass field ordering with --use-annotated may change - Dataclass field assignment detection now accounts for constraints moved into Annotated[...]. Generated dataclass fields may be reordered so fields without defaults come before fields with defaults. (#3203)

Default Behavior Changes

  • Auto-detection (--input-file-type auto) now recognizes AsyncAPI, Avro, and Protocol Buffers inputs - Inputs that previously fell back to JSON/YAML handling or failed detection may now be detected as one of these formats. (#3194, #3195, #3198)

Compatibility Notes

  • The temporary Pydantic minimum-version change from pydantic>=2,<3 to pydantic>=2.6,<3 was reverted before this release. The final dependency range for Python < 3.14 remains pydantic>=2,<3. (#3210, #3215)

What's Changed

New Contributors

Full Changelog: koxudaxi/datamodel-code-generator@0.58.0...0.59.0


Commits

Dependabot compatibility score

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)

Bumps [datamodel-code-generator](https://github.com/koxudaxi/datamodel-code-generator) from 0.58.0 to 0.59.0.
- [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.58.0...0.59.0)

---
updated-dependencies:
- dependency-name: datamodel-code-generator
  dependency-version: 0.59.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Related with project dependencies maintenance Package and maintenance related labels Jun 11, 2026
@codecov

codecov Bot commented Jun 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.11%. Comparing base (202a1d6) to head (d55b9af).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #824   +/-   ##
=======================================
  Coverage   86.11%   86.11%           
=======================================
  Files          71       71           
  Lines        3263     3263           
=======================================
  Hits         2810     2810           
  Misses        453      453           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@FedericoNegri FedericoNegri merged commit e94dfcf into main Jun 12, 2026
21 checks passed
@FedericoNegri FedericoNegri deleted the dependabot/pip/datamodel-code-generator-0.59.0 branch June 12, 2026 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Related with project dependencies maintenance Package and maintenance related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant