Skip to content

[airflow-ctl/v0-1-test] Bump datamodel-code-generator pin from 0.33.0 to 0.41.0 (#69854)#70201

Draft
github-actions[bot] wants to merge 1 commit into
airflow-ctl/v0-1-testfrom
backport-15a4478-airflow-ctl/v0-1-test
Draft

[airflow-ctl/v0-1-test] Bump datamodel-code-generator pin from 0.33.0 to 0.41.0 (#69854)#70201
github-actions[bot] wants to merge 1 commit into
airflow-ctl/v0-1-testfrom
backport-15a4478-airflow-ctl/v0-1-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

The pin was stuck at 0.33.0 because later releases change how
use-default interacts with nullable/optional fields. Versions 0.42.2
through at least 0.67.0 widen JsonValue-backed fields to
JsonValue | None, and 0.57.0+ additionally drops the = None default
from nullable-optional fields, turning ~200 fields in the Task SDK
Execution API client and the airflow-ctl API client from optional
into required -- a breaking Pydantic v2 model-contract change.

0.41.0 is the newest release that still regenerates both clients with
a diff limited to the generator version-comment line (plus one benign
RootModel[list] -> RootModel[list[Any]] typing improvement in
airflow-ctl's generated.py), so it unblocks the dependency without
carrying either regression forward.

Closes the datamodel-code-generator item from #69616.
(cherry picked from commit 15a4478)

Co-authored-by: hkr 104939283+harishkesavarao@users.noreply.github.com

… to 0.41.0 (#69854)

The pin was stuck at 0.33.0 because later releases change how
use-default interacts with nullable/optional fields. Versions 0.42.2
through at least 0.67.0 widen JsonValue-backed fields to
JsonValue | None, and 0.57.0+ additionally drops the = None default
from nullable-optional fields, turning ~200 fields in the Task SDK
Execution API client and the airflow-ctl API client from optional
into required -- a breaking Pydantic v2 model-contract change.

0.41.0 is the newest release that still regenerates both clients with
a diff limited to the generator version-comment line (plus one benign
RootModel[list] -> RootModel[list[Any]] typing improvement in
airflow-ctl's generated.py), so it unblocks the dependency without
carrying either regression forward.

Closes the datamodel-code-generator item from #69616.
(cherry picked from commit 15a4478)

Co-authored-by: hkr <104939283+harishkesavarao@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant