Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 29, 2025

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

Release notes

Sourced from datamodel-code-generator's releases.

0.50.0

Breaking Changes

Code Generation Changes

  • Models with unevaluatedProperties now generate extra field configuration - JSON Schemas containing unevaluatedProperties: false will now generate models with extra='forbid' (Pydantic v2) or extra = Extra.forbid (Pydantic v1), and schemas with unevaluatedProperties: true will generate extra='allow'. Previously this keyword was ignored. This may cause validation errors for data that was previously accepted. (#2797) Example - a schema like:
    {
      "title": "Resource",
      "type": "object",
      "properties": { "name": { "type": "string" } },
      "unevaluatedProperties": false
    }
    Previously generated:
    class Resource(BaseModel):
        name: str | None = None
    Now generates:
    class Resource(BaseModel):
        model_config = ConfigDict(extra='forbid')
        name: str | None = None

Default Behavior Changes

  • Default encoding changed from system locale to UTF-8 - The default encoding for reading input files and writing output is now always utf-8 instead of the system's locale-preferred encoding (e.g., cp1252 on Windows). Users who rely on locale-specific encoding must now explicitly use --encoding to specify their desired encoding (#2802)

What's Changed

... (truncated)

Changelog

Sourced from datamodel-code-generator's changelog.

0.50.0 - 2025-12-28

Breaking Changes

Code Generation Changes

  • Models with unevaluatedProperties now generate extra field configuration - JSON Schemas containing unevaluatedProperties: false will now generate models with extra='forbid' (Pydantic v2) or extra = Extra.forbid (Pydantic v1), and schemas with unevaluatedProperties: true will generate extra='allow'. Previously this keyword was ignored. This may cause validation errors for data that was previously accepted. (#2797) Example - a schema like:
    {
      "title": "Resource",
      "type": "object",
      "properties": { "name": { "type": "string" } },
      "unevaluatedProperties": false
    }
    Previously generated:
    class Resource(BaseModel):
        name: str | None = None
    Now generates:
    class Resource(BaseModel):
        model_config = ConfigDict(extra='forbid')
        name: str | None = None

Default Behavior Changes

  • Default encoding changed from system locale to UTF-8 - The default encoding for reading input files and writing output is now always utf-8 instead of the system's locale-preferred encoding (e.g., cp1252 on Windows). Users who rely on locale-specific encoding must now explicitly use --encoding to specify their desired encoding (#2802)

What's Changed

... (truncated)

Commits
  • 8c02562 Fix --check to use output path's pyproject.toml settings (#2831)
  • 7c248a9 Add missing path and ulid type mappings to TypedDict type manager (#2828)
  • 718b415 Optimize propertyNames $ref handling by calling get_ref_data_type directly (#...
  • 998955e Reduce CodSpeed benchmark tests for faster CI (#2826)
  • 80945d0 Fix propertyNames constraint ignored when using $ref to enum definition (#2824)
  • 6825eea Add --enum-field-as-literal-map option and x-enum-field-as-literal schema ext...
  • 3cafaf2 Add ULID type support (#2820)
  • 1b3b4f7 Add extreme-scale performance tests with dynamic schema generation (#2818)
  • 1e4db90 Exclude perf tests from regular test runs (#2817)
  • 983216a Add ReadOnly support for TypedDict with --use-frozen-field (#2813)
  • Additional commits viewable in compare view

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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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.44.0...0.50.0)

---
updated-dependencies:
- dependency-name: datamodel-code-generator
  dependency-version: 0.50.0
  dependency-type: direct:development
...

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 Dec 29, 2025
@dependabot dependabot bot requested a review from a team as a code owner December 29, 2025 19:10
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Dec 29, 2025
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