Skip to content

build(deps-dev): bump datamodel-code-generator from 0.31.2 to 0.66.0 in /sdk/python#374

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

build(deps-dev): bump datamodel-code-generator from 0.31.2 to 0.66.0 in /sdk/python#374
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/sdk/python/datamodel-code-generator-0.66.0

Conversation

@dependabot

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

Copy link
Copy Markdown

Bumps datamodel-code-generator from 0.31.2 to 0.66.0.

Release notes

Sourced from datamodel-code-generator's releases.

0.66.0

Breaking Changes

  • msgspec nullable annotated fields now place None outside Annotated - For msgspec.Struct models, nullable fields that carry Meta/Annotated constraints no longer wrap the type in Optional inside the Annotated[...]. The None member is now emitted as a separate union arm outside the Annotated wrapper, which changes the generated type hints and the resulting imports (Optional is dropped when no longer needed). This is required for the generated models to validate correctly at runtime under msgspec, but it changes output for existing users. (#3495)
# Before
from typing import Annotated, Optional, Union
name: Union[Annotated[Optional[str], Meta(max_length=5)], UnsetType] = UNSET
After
from typing import Annotated, Union
name: Union[Annotated[str, Meta(max_length=5)], None, UnsetType] = UNSET

What's Changed

Full Changelog: koxudaxi/datamodel-code-generator@0.65.1...0.66.0

0.65.1

What's Changed

... (truncated)

Changelog

Sourced from datamodel-code-generator's changelog.

Changelog

All notable changes to this project are documented in this file. This changelog is automatically generated from GitHub Releases.


0.65.1 - 2026-06-25

What's Changed

Full Changelog: koxudaxi/datamodel-code-generator@0.65.0...0.65.1


0.65.0 - 2026-06-21

Breaking Changes

Error Handling Changes

  • YAML !!set tags now rejected - load_yaml now validates all YAML input and raises a yaml.YAMLError when it encounters the unsupported tag:yaml.org,2002:set (!!set) tag. Previously such input was loaded silently (constructed as a Python set). YAML schemas or sample data that relied on !!set tags will now fail to load with an "Unsupported YAML tag" error. This validation runs unconditionally on every YAML load and is not gated behind any opt-in flag (#3447)

Code Generation Changes

  • msgspec.Struct boolean const fields now generate bool instead of Literal[True]/Literal[False] - When generating msgspec.Struct models (--output-model-type msgspec.Struct), a JSON Schema const with a boolean value now produces a plain bool type instead of a boolean Literal, because msgspec does not support boolean Literal tag values at runtime. Output for other model types (e.g. Pydantic) is unchanged. Existing msgspec users with boolean-const fields will see different generated output. (#3462)
  • msgspec.Struct combined object unions now render as tagged Struct unions - For msgspec.Struct output, combined (oneOf/anyOf) object schemas that share a required literal discriminator field with int/str values now have a discriminator inferred and are emitted as tagged Struct unions (tag_field=..., tag=...). This changes the generated class definitions for existing msgspec users whose schemas match this shape. (#3462)

What's Changed

... (truncated)

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.31.2 to 0.66.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.31.2...0.66.0)

---
updated-dependencies:
- dependency-name: datamodel-code-generator
  dependency-version: 0.66.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 Jun 29, 2026
@github-code-quality

github-code-quality Bot commented Jun 29, 2026

Copy link
Copy Markdown

Code Coverage Overview

Languages: TypeScript, Python

TypeScript / code-coverage/typescript-sdk

The overall coverage remains at 48%, unchanged from the branch.

Python / code-coverage/python-tools

The overall coverage remains at 64%, unchanged from the branch.

Python / code-coverage/python-sdk

The overall coverage remains at 83%, unchanged from the branch.


Updated June 29, 2026 03:08 UTC
Code Coverage is in Public Preview. Learn more and provide us with your feedback.

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