Skip to content

Update datamodel-code-generator requirement from <0.66,>=0.61 to >=0.61,<0.71 - #617

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/datamodel-code-generator-gte-0.61-and-lt-0.71
Closed

Update datamodel-code-generator requirement from <0.66,>=0.61 to >=0.61,<0.71#617
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/datamodel-code-generator-gte-0.61-and-lt-0.71

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 24, 2026

Copy link
Copy Markdown
Contributor

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

Release notes

Sourced from datamodel-code-generator's releases.

0.70.0

Breaking Changes

  • Preserved additionalProperties value constraints change generated output - JSON Schema additionalProperties (and propertyNames/mapping) value schemas that carry constraints (e.g. minimum/maximum, minLength/maxLength/pattern, array item constraints, allOf-merged primitives) now retain those constraints in the generated model instead of dropping them. This produces new TypeAlias/RootModel/TypeAliasType definitions and changes dict value type hints, so output differs for existing schemas. For example, a mapping value that previously generated dict[str, Literal['fixed']] now generates a dedicated alias preserving the constraints (#3616):
# Before
class DictModel(RootModel[dict[str, Literal['fixed']]]):
    root: dict[str, Literal['fixed']]
After
DictModelAdditionalProperty = TypeAliasType(
"DictModelAdditionalProperty",
Annotated[Literal['fixed'], Field(max_length=100, min_length=1)],
)
class DictModel(RootModel[dict[str, DictModelAdditionalProperty]]):
root: dict[str, DictModelAdditionalProperty]

What's Changed

Full Changelog: koxudaxi/datamodel-code-generator@0.69.0...0.70.0

Changelog

Sourced from datamodel-code-generator's changelog.

0.70.0 - 2026-07-23

Breaking Changes

  • Preserved additionalProperties value constraints change generated output - JSON Schema additionalProperties (and propertyNames/mapping) value schemas that carry constraints (e.g. minimum/maximum, minLength/maxLength/pattern, array item constraints, allOf-merged primitives) now retain those constraints in the generated model instead of dropping them. This produces new TypeAlias/RootModel/TypeAliasType definitions and changes dict value type hints, so output differs for existing schemas. For example, a mapping value that previously generated dict[str, Literal['fixed']] now generates a dedicated alias preserving the constraints (#3616):
# Before
class DictModel(RootModel[dict[str, Literal['fixed']]]):
    root: dict[str, Literal['fixed']]
After
DictModelAdditionalProperty = TypeAliasType(
"DictModelAdditionalProperty",
Annotated[Literal['fixed'], Field(max_length=100, min_length=1)],
)
class DictModel(RootModel[dict[str, DictModelAdditionalProperty]]):
root: dict[str, DictModelAdditionalProperty]

What's Changed

Full Changelog: koxudaxi/datamodel-code-generator@0.69.0...0.70.0


0.69.0 - 2026-07-19

Breaking Changes

  • Discriminated unions with duplicate or unresolvable discriminator values now fall back to a plain union - When a discriminated union contains variants that resolve to the same discriminator value, or variants that are containers, RootModel/type-alias wrappers, None/str members, or otherwise lack a resolvable discriminator literal, the generator no longer emits Field(..., discriminator='...') and instead produces a regular union. Previously such schemas emitted a discriminator= argument. Users regenerating models from these schemas will see the discriminator keyword removed from the affected fields (#3603)
# Before (invalid duplicate-value discriminator was emitted):
class GroupedItem(RootModel[Item | ItemReference]):
    root: Item | ItemReference = Field(..., discriminator='type')
After (falls back to a plain union when variants are not valid discriminated members):
</tr></table>

... (truncated)

Commits
  • 89f3262 Update types-setuptools requirement from <70,>=67.6.0.5 to >=67.6.0.5,<84 (#3...
  • f92398f Bump the github-actions group with 8 updates (#3618)
  • 3305baa Rename a msgspec field named "field" to avoid shadowing the field import (#3615)
  • 7c5e534 Preserve additionalProperties value constraints (#3616)
  • 28dd035 [pre-commit.ci] pre-commit autoupdate (#3617)
  • 1f8c48e docs: update release benchmark data (#3614)
  • a0877cb docs: update CHANGELOG.md for 0.69.0 (#3613)
  • 545a96c Merge commit from fork
  • af435d9 Fix empty ("") property name dropping its alias (#3612)
  • eae6202 Add multi-module stdout guard (#3611)
  • 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 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.61.0...0.70.0)

---
updated-dependencies:
- dependency-name: datamodel-code-generator
  dependency-version: 0.70.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 Jul 24, 2026
@dependabot @github

dependabot Bot commented on behalf of github Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #618.

@dependabot dependabot Bot closed this Jul 27, 2026
@dependabot
dependabot Bot deleted the dependabot/pip/datamodel-code-generator-gte-0.61-and-lt-0.71 branch July 27, 2026 01:03
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