Skip to content

Bump datamodel-code-generator from 0.71.0 to 0.82.0 - #19

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/datamodel-code-generator-0.82.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/datamodel-code-generator-0.82.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 20, 2026

Copy link
Copy Markdown

Bumps datamodel-code-generator from 0.71.0 to 0.82.0.

Release notes

Sourced from datamodel-code-generator's releases.

0.82.0

Breaking Changes

Code Generation Changes

  • Constraints are now emitted on recursive container fields - Previously any field that was a self reference had all of its constraints suppressed. The new _can_apply_constraints property in the base field model only suppresses constraints for direct self references, so a self referencing field whose type is a container such as list, Sequence, dict, Mapping, set, frozenset, or tuple now keeps its size constraints. Pydantic output gains Field(min_length=..., max_length=...) and msgspec output gains Meta(min_length=..., max_length=...) where the generated code previously had a bare default, for example friends: list[Pet] | None = None becomes friends: list[Pet] | None = Field(None, min_length=1) (#4071)
  • Stricter runtime validation of recursive container payloads - Because the recovered size constraints are now present in the generated models, input data that violates minItems or maxItems on a recursive array is rejected at validation time instead of being accepted. Existing code that relied on the previously unconstrained generated models may start raising pydantic ValidationError or msgspec.ValidationError for payloads that used to pass (#4071)

What's Changed

New Contributors

Full Changelog: datamodel-code-generator/datamodel-code-generator@0.81.0...0.82.0

0.81.0

Breaking Changes

Code Generation Changes

  • Undeclared required keys now retained in variant runtime validation - When combining --read-only-write-only-model-type request/response variants with --schema-validator-type runtime validators, generated models now keep runtime validation rules for required keys that are not declared as properties (for example keys required via additionalProperties or if/then/else), whereas these rules were previously dropped from the variant models. Regenerated Request and Response models therefore enforce stricter validation and may reject payloads that the previously generated validators accepted (#4055)

... (truncated)

Changelog

Sourced from datamodel-code-generator's changelog.

0.82.0 - 2026-09-16

Breaking Changes

Code Generation Changes

  • Constraints are now emitted on recursive container fields - Previously any field that was a self reference had all of its constraints suppressed. The new _can_apply_constraints property in the base field model only suppresses constraints for direct self references, so a self referencing field whose type is a container such as list, Sequence, dict, Mapping, set, frozenset, or tuple now keeps its size constraints. Pydantic output gains Field(min_length=..., max_length=...) and msgspec output gains Meta(min_length=..., max_length=...) where the generated code previously had a bare default, for example friends: list[Pet] | None = None becomes friends: list[Pet] | None = Field(None, min_length=1) (#4071)
  • Stricter runtime validation of recursive container payloads - Because the recovered size constraints are now present in the generated models, input data that violates minItems or maxItems on a recursive array is rejected at validation time instead of being accepted. Existing code that relied on the previously unconstrained generated models may start raising pydantic ValidationError or msgspec.ValidationError for payloads that used to pass (#4071)

What's Changed

New Contributors

Full Changelog: datamodel-code-generator/datamodel-code-generator@0.81.0...0.82.0


0.81.0 - 2026-09-14

Breaking Changes

Code Generation Changes

  • Undeclared required keys now retained in variant runtime validation - When combining --read-only-write-only-model-type request/response variants with --schema-validator-type runtime validators, generated models now keep runtime validation rules for required keys that are not declared as properties (for example keys required via additionalProperties or if/then/else), whereas these rules were previously dropped from the variant models. Regenerated Request and Response models therefore enforce stricter validation and may reject payloads that the previously generated validators accepted (#4055)

What's Changed

... (truncated)

Commits
  • 77f28e5 docs: update release benchmark data (#4077)
  • 5eb4d73 Allow manual replay of failed release draft analysis (#4079)
  • 7748b3d Fix release draft inline code validation and use Opus 5 (#4078)
  • 4840cb3 Fix bare Mapping import dropped when schema validators alias it (#4076)
  • d1fcb45 Generate validators for not-required groups and presence-only if conditions (...
  • 0861ccc Fix collapse-root-models dropping array constraints on self-referencing union...
  • 339d80e Fix builtin formatter wrapping of boolean expressions (#4073)
  • 3452dfb docs: update release benchmark data (#4066)
  • b3fabab docs: update release benchmark data (#4065)
  • 161b483 docs: update CHANGELOG.md for 0.81.0 (#4064)
  • Additional commits viewable in compare view

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/datamodel-code-generator/datamodel-code-generator) from 0.71.0 to 0.82.0.
- [Release notes](https://github.com/datamodel-code-generator/datamodel-code-generator/releases)
- [Changelog](https://github.com/datamodel-code-generator/datamodel-code-generator/blob/main/CHANGELOG.md)
- [Commits](datamodel-code-generator/datamodel-code-generator@0.71.0...0.82.0)

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

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 Sep 20, 2026
@dependabot
dependabot Bot requested a review from ron1510 as a code owner September 20, 2026 12:55
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Sep 20, 2026

This branch has not been deployed

No deployments
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