Skip to content

chore(deps): update dependency datamodel-code-generator to v0.99.0 - #719

Open
renovate[bot] wants to merge 1 commit into
mainlinefrom
renovate/datamodel-code-generator-0.x
Open

renovate[bot] wants to merge 1 commit into
mainlinefrom
renovate/datamodel-code-generator-0.x

Conversation

@renovate

@renovate renovate Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
datamodel-code-generator ==0.96.0 → ==0.99.0 age adoption passing confidence

Release Notes

datamodel-code-generator/datamodel-code-generator (datamodel-code-generator)

v0.99.0

Compare Source

Breaking Changes

Code Generation Changes
  • Generated AsyncAPI clients now follow references into other loaded documents (experimental --generate-client) - With --generate-client and AsyncAPI input, the generator now reads a channel, operation, message, trait, binding, parameter, reply, server or security scheme declared in another loaded document at the place where the parser resolves its $ref. Channels that used to be skipped with a "references another document" warning are now generated as client helpers. An AsyncAPI 3 operation in another loaded document no longer stops the whole run with "operation ... references another document". When you regenerate such a client, it gains these helpers, and the SOCKET_N, OPERATION_N and codec_N constants in the generated protocols/_plans.py, _operations.py and _generated/model_bindings.py are renumbered. Channels that are still left out may give a different reason in their skip warning. References into a document the run did not load, and references that loop, still leave the channel out (#​7137)
  • Channel servers and security requirements are now matched by where their reference leads (experimental --generate-client) - In AsyncAPI input, a channel servers entry or an operation or server security requirement whose $ref does not point straight at an entry of the root document's servers or components/securitySchemes now names the root entry that leads to the same object. Before, such an entry was ignored or the channel was skipped. So a generated channel can now get extra servers or security requirements it did not have before, or be generated where it used to be skipped (#​7137)
  • Constrained union members are written as Annotated under --use-annotated - In Pydantic v2 output (pydantic_v2.BaseModel, pydantic_v2.dataclass) with --use-annotated, a union member that has its own constraints used to be written as a con*() call. This covers members in a field, a list item, a dict value or a RootModel root and generic parameter, for example the string of type: [integer, string] with a pattern, or the integer of a type list with a minimum. Such a member is now written as Annotated[<type>, Field(...)], and a Decimal multipleOf becomes MultipleOf(...). For example, code: int | constr(pattern=r'^[0-9]+$') becomes code: int | Annotated[str, Field(pattern=r'^[0-9]+$')], and RootModel[conint(ge=2) | constr(max_length=2)] becomes RootModel[Annotated[int, Field(ge=2)] | Annotated[str, Field(max_length=2)]]. The generated imports change too: constr, conint, confloat, condecimal and conbytes are no longer imported from pydantic for these members, while Annotated, Field and annotated_types.MultipleOf are added where needed. This also changes the output of the read-kubernetes-extensions presets. The models accept and reject the same values, but the generated code text and imports are different. Output without --use-annotated and with --field-constraints alone does not change (#​7117)
  • Generated clients now bind the keys of a TypedDict whose bases have conflicting orders - With the experimental --generate-client option and --output-model-type typing.TypedDict, a TypedDict whose bases Python cannot order (for example E: allOf [C, D] where C: allOf [A, B] and D: allOf [B, A]) used to get an empty binding. Its codec in model_bindings.py was Model(()), decoded objects held no keys, and a body of it took no field arguments under --client-body-arguments both. Its keys are now bound in the order the models give its bases. The codec lists every field (for example Model((Field('b', 'b'), Field('a', 'a'), Field('d', 'd'), Field('c', 'c'), Field('e', 'e')))), decoded objects contain those keys in that order, and the client call that sends such a body now accepts them as field arguments. Generated clients that relied on the old empty binding behave differently (#​7150)
  • AsyncAPI client payloads written as a $ref with annotation siblings are now typed by the referenced model - This affects the experimental --generate-client option with AsyncAPI input. A message payload written as a $ref beside annotations only (such as a description) is now typed and coded by the model of the schema it names, the same way an OpenAPI body is. Before, it was typed by the payload's own wrapper root model. For example, ChannelPlan[models.FeedTradePayload | models.Quote, Never] becomes ChannelPlan[models.Trade | models.Quote, Never]. Code that annotates or handles session messages as the wrapper model must switch to the referenced model (#​7163)
  • AsyncAPI 2 client unions now list publish messages before subscribe messages - This affects the experimental --generate-client option with AsyncAPI 2 input. The operations of a channel are now read in the parser's order, publish then subscribe, so a stream or channel that carries both has its union written in the opposite order. For example, EventPlan[models.StatusSubscribePayload | models.StatusPublishPayload] becomes EventPlan[models.StatusPublishPayload | models.StatusSubscribePayload] (#​7163)
  • Served OpenAPI document of --generate-server fastapi now resolves references the way the models do (experimental) - The _generated/openapi.json that a generated FastAPI server serves now resolves each $ref through the $id, $anchor and $dynamicAnchor names the parser registers for the models, and no longer uses its own index. Three kinds of reference used to be kept as written with the warning "The served document keeps ..., which names nothing the generation loaded". They now point to the schema the models use: a plain-name reference to an $anchor inside a namespace of definitions (such as $defs: {v1: {Label: {$anchor: label}}}) now points to /components/schemas/Pet/$defs/v1/Label; a reference through the root $id of a referenced JSON Schema document into that document (such as https://example.com/schemas/pet followed by a pointer to /$defs/Name) is now bundled as a component; and under OpenAPI 3.0, a reference by the $id of a component schema (such as https://example.com/owner.json with --no-allow-remote-refs) now resolves to that component. A plain name whose anchor is also declared by a schema beside a Reference Object (which OpenAPI ignores) now points to the anchored property the models read, not to the ignored schema. The generated models do not change, but regenerating changes the served openapi.json, so --check runs and anything that reads the served document will see different output (#​7178)
  • Served OpenAPI document keeps some pointer references unresolved that it used to bundle (experimental) - With --generate-server fastapi, two kinds of JSON pointer that the models already treat as dangling references (they fall back to Any with a DanglingRefWarning) are now also left as written in the served _generated/openapi.json, and each now emits a DocumentationAnnotationWarning: a pointer below the $id of a parameter document that was first loaded through a pointer (such as /properties/size), and a pointer below the $id of a schema written inline in paths (such as /$defs/Title). The first used to be bundled. The second used to point to the inline schema's own $defs entry. Builds that treat warnings as errors will now fail on these inputs (#​7178)
API/CLI Changes
  • Removed create_module_getattr from datamodel_code_generator.types and datamodel_code_generator.parser.asyncapi - Both modules used to import create_module_getattr from datamodel_code_generator.util for their old lazy __getattr__ hooks. That meant from datamodel_code_generator.types import create_module_getattr, the same import from datamodel_code_generator.parser.asyncapi, and star imports of either module all gave you that name. Those imports are gone because the modules now use the internal _lazy_exports helper, so code that reached the function through either module gets ImportError or AttributeError. Import it from datamodel_code_generator.util, where it is still available. (#​7155)
  • Module dir() now lists lazily exported names - The package root, types, util, parser.avro, parser.asyncapi, parser.base, parser.jsonschema and __main__ now define __dir__, so dir() now includes lazy names such as StrictTypes, BaseModel, SafeLoader, dataclass_model, msgspec_model, TypedDictModel, Config, generate_dynamic_models and load_pyproject_config, which it used to leave out. Anything that walks dir() and reads each attribute, such as inspect.getmembers(), help() and REPL completion, now imports the modules behind those names. For example, it loads the dataclass and msgspec model modules for parser.base and the protobuf and XML Schema parsers for parser.asyncapi. Also, once a resolver name in datamodel_code_generator.reference has been read, dir() and __all__ now list it once instead of twice. (#​7155)
Default Behavior Changes
  • AsyncAPI client reads channels by the configured --schema-version - This affects the experimental --generate-client option with AsyncAPI input. Channels are now read by the AsyncAPI version the models are read by: --schema-version 2.0 or 3.0 where it is given, else the document's asyncapi field. Before, only the asyncapi field was read. A run that passes a --schema-version different from the document's declared version now reads its channels by that version. This can leave channels out or make the client generation fail, for example a 3.0 document generated with --schema-version 2.0 (#​7163)
Error Handling Changes
  • AsyncAPI client skip warnings change in wording, category and order - This affects the experimental --generate-client option with AsyncAPI input. A message $ref that loops is now read as the message it is written in. Its channel is reported under messages without a payload, as "message ... declares no payload", instead of "a message of it references another document". A channel whose messages the parser's walk never reached is now left out with "the messages at ... were not read", for example a reply channel in another document that no channel of the document lists. AsyncAPI 2 skip reasons now list the publish operation's reasons before the subscribe operation's. Tooling that matches these warnings or error messages must be updated (#​7163)

What's Changed

Full Changelog: datamodel-code-generator/datamodel-code-generator@0.98.0...0.99.0

v0.98.0

Compare Source

v0.97.0

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@github-actions

Copy link
Copy Markdown

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  lambda/src/environment
  service_provider.py
  lambda/src/services
  oauth_code_manager.py
Project Total  

This report was generated by python-coverage-comment-action

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Diff for stage: DefaultStage

No Changes for stack: GitHubOidcStack ✅

Diff for stack: Service-prod - 0 to add, 0 to update, 0 to destroy ✅

Details
Resources
[~] AWS::Lambda::Function AuthApiHandlerED50ACFA
 ├─ [~] Code
 │   └─ [~] .S3Key:
 │       ├─ [-] dd9716253462a3ca4d5d3cac0381c37a3f893dcb4afbe58f7f0b324c5fef375b.zip
 │       └─ [+] d0ba4c16b8682899801947867bcdf1ae9937d83ee37b03e55a15c5ca6c209740.zip
 └─ [~] Metadata
     └─ [~] .aws:asset:path:
         ├─ [-] asset.dd9716253462a3ca4d5d3cac0381c37a3f893dcb4afbe58f7f0b324c5fef375b
         └─ [+] asset.d0ba4c16b8682899801947867bcdf1ae9937d83ee37b03e55a15c5ca6c209740
[~] AWS::Lambda::Function TokenApiHandler2E66DB25
 ├─ [~] Code
 │   └─ [~] .S3Key:
 │       ├─ [-] dd9716253462a3ca4d5d3cac0381c37a3f893dcb4afbe58f7f0b324c5fef375b.zip
 │       └─ [+] d0ba4c16b8682899801947867bcdf1ae9937d83ee37b03e55a15c5ca6c209740.zip
 └─ [~] Metadata
     └─ [~] .aws:asset:path:
         ├─ [-] asset.dd9716253462a3ca4d5d3cac0381c37a3f893dcb4afbe58f7f0b324c5fef375b
         └─ [+] asset.d0ba4c16b8682899801947867bcdf1ae9937d83ee37b03e55a15c5ca6c209740
[~] AWS::Lambda::Function ProfileApiHandler9B65A298
 ├─ [~] Code
 │   └─ [~] .S3Key:
 │       ├─ [-] dd9716253462a3ca4d5d3cac0381c37a3f893dcb4afbe58f7f0b324c5fef375b.zip
 │       └─ [+] d0ba4c16b8682899801947867bcdf1ae9937d83ee37b03e55a15c5ca6c209740.zip
 └─ [~] Metadata
     └─ [~] .aws:asset:path:
         ├─ [-] asset.dd9716253462a3ca4d5d3cac0381c37a3f893dcb4afbe58f7f0b324c5fef375b
         └─ [+] asset.d0ba4c16b8682899801947867bcdf1ae9937d83ee37b03e55a15c5ca6c209740
[~] AWS::Lambda::Function ApiHandler5E7490E8
 ├─ [~] Code
 │   └─ [~] .S3Key:
 │       ├─ [-] dd9716253462a3ca4d5d3cac0381c37a3f893dcb4afbe58f7f0b324c5fef375b.zip
 │       └─ [+] d0ba4c16b8682899801947867bcdf1ae9937d83ee37b03e55a15c5ca6c209740.zip
 └─ [~] Metadata
     └─ [~] .aws:asset:path:
         ├─ [-] asset.dd9716253462a3ca4d5d3cac0381c37a3f893dcb4afbe58f7f0b324c5fef375b
         └─ [+] asset.d0ba4c16b8682899801947867bcdf1ae9937d83ee37b03e55a15c5ca6c209740
[~] AWS::Lambda::Function ChannelApiHandler02759D57
 ├─ [~] Code
 │   └─ [~] .S3Key:
 │       ├─ [-] dd9716253462a3ca4d5d3cac0381c37a3f893dcb4afbe58f7f0b324c5fef375b.zip
 │       └─ [+] d0ba4c16b8682899801947867bcdf1ae9937d83ee37b03e55a15c5ca6c209740.zip
 └─ [~] Metadata
     └─ [~] .aws:asset:path:
         ├─ [-] asset.dd9716253462a3ca4d5d3cac0381c37a3f893dcb4afbe58f7f0b324c5fef375b
         └─ [+] asset.d0ba4c16b8682899801947867bcdf1ae9937d83ee37b03e55a15c5ca6c209740

No Changes for stack: Frontend-prod ✅
No Changes for stack: Monitoring-prod ✅

Generated for commit f0e2950 at 2026-11-20T08:09:43.950Z

@renovate renovate Bot changed the title chore(deps): update dependency datamodel-code-generator to v0.97.0 chore(deps): update dependency datamodel-code-generator to v0.98.0 Nov 20, 2026
@renovate
renovate Bot force-pushed the renovate/datamodel-code-generator-0.x branch from 6eec2a1 to 129e88c Compare November 20, 2026 02:31
@renovate
renovate Bot force-pushed the renovate/datamodel-code-generator-0.x branch from 129e88c to f0e2950 Compare November 20, 2026 08:06
@renovate renovate Bot changed the title chore(deps): update dependency datamodel-code-generator to v0.98.0 chore(deps): update dependency datamodel-code-generator to v0.99.0 Nov 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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants