Repository navigation
chore(deps): update dependency datamodel-code-generator to v0.99.0 - #719
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||||||||||||||
Diff for stage: DefaultStageNo Changes for stack: GitHubOidcStack ✅ Diff for stack: Service-prod - 0 to add, 0 to update, 0 to destroy ✅DetailsResources
[~] 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 ✅ Generated for commit f0e2950 at 2026-11-20T08:09:43.950Z |
renovate
Bot
force-pushed
the
renovate/datamodel-code-generator-0.x
branch
from
November 20, 2026 02:31
6eec2a1 to
129e88c
Compare
renovate
Bot
force-pushed
the
renovate/datamodel-code-generator-0.x
branch
from
November 20, 2026 08:06
129e88c to
f0e2950
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==0.96.0→==0.99.0Release Notes
datamodel-code-generator/datamodel-code-generator (datamodel-code-generator)
v0.99.0Compare Source
Breaking Changes
Code Generation Changes
--generate-client) - With--generate-clientand 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 theSOCKET_N,OPERATION_Nandcodec_Nconstants in the generatedprotocols/_plans.py,_operations.pyand_generated/model_bindings.pyare 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)--generate-client) - In AsyncAPI input, a channelserversentry or an operation or server security requirement whose$refdoes not point straight at an entry of the root document'sserversorcomponents/securitySchemesnow 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)Annotatedunder--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 acon*()call. This covers members in a field, a list item, a dict value or aRootModelroot and generic parameter, for example thestringoftype: [integer, string]with apattern, or theintegerof a type list with aminimum. Such a member is now written asAnnotated[<type>, Field(...)], and aDecimalmultipleOfbecomesMultipleOf(...). For example,code: int | constr(pattern=r'^[0-9]+$')becomescode: int | Annotated[str, Field(pattern=r'^[0-9]+$')], andRootModel[conint(ge=2) | constr(max_length=2)]becomesRootModel[Annotated[int, Field(ge=2)] | Annotated[str, Field(max_length=2)]]. The generated imports change too:constr,conint,confloat,condecimalandconbytesare no longer imported frompydanticfor these members, whileAnnotated,Fieldandannotated_types.MultipleOfare added where needed. This also changes the output of theread-kubernetes-extensionspresets. The models accept and reject the same values, but the generated code text and imports are different. Output without--use-annotatedand with--field-constraintsalone does not change (#7117)--generate-clientoption and--output-model-type typing.TypedDict, a TypedDict whose bases Python cannot order (for exampleE: allOf [C, D]whereC: allOf [A, B]andD: allOf [B, A]) used to get an empty binding. Its codec inmodel_bindings.pywasModel(()), 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 exampleModel((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)$refwith annotation siblings are now typed by the referenced model - This affects the experimental--generate-clientoption with AsyncAPI input. A message payload written as a$refbeside annotations only (such as adescription) 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]becomesChannelPlan[models.Trade | models.Quote, Never]. Code that annotates or handles session messages as the wrapper model must switch to the referenced model (#7163)publishmessages beforesubscribemessages - This affects the experimental--generate-clientoption with AsyncAPI 2 input. The operations of a channel are now read in the parser's order,publishthensubscribe, so a stream or channel that carries both has its union written in the opposite order. For example,EventPlan[models.StatusSubscribePayload | models.StatusPublishPayload]becomesEventPlan[models.StatusPublishPayload | models.StatusSubscribePayload](#7163)--generate-server fastapinow resolves references the way the models do (experimental) - The_generated/openapi.jsonthat a generated FastAPI server serves now resolves each$refthrough the$id,$anchorand$dynamicAnchornames 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$anchorinside 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$idof a referenced JSON Schema document into that document (such ashttps://example.com/schemas/petfollowed by a pointer to/$defs/Name) is now bundled as a component; and under OpenAPI 3.0, a reference by the$idof a component schema (such ashttps://example.com/owner.jsonwith--no-allow-remote-refs) now resolves to that component. A plain name whose anchor is also declared by aschemabeside 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 servedopenapi.json, so--checkruns and anything that reads the served document will see different output (#7178)--generate-server fastapi, two kinds of JSON pointer that the models already treat as dangling references (they fall back toAnywith aDanglingRefWarning) are now also left as written in the served_generated/openapi.json, and each now emits aDocumentationAnnotationWarning: a pointer below the$idof a parameter document that was first loaded through a pointer (such as/properties/size), and a pointer below the$idof a schema written inline inpaths(such as/$defs/Title). The first used to be bundled. The second used to point to the inline schema's own$defsentry. Builds that treat warnings as errors will now fail on these inputs (#7178)API/CLI Changes
create_module_getattrfromdatamodel_code_generator.typesanddatamodel_code_generator.parser.asyncapi- Both modules used to importcreate_module_getattrfromdatamodel_code_generator.utilfor their old lazy__getattr__hooks. That meantfrom datamodel_code_generator.types import create_module_getattr, the same import fromdatamodel_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_exportshelper, so code that reached the function through either module getsImportErrororAttributeError. Import it fromdatamodel_code_generator.util, where it is still available. (#7155)dir()now lists lazily exported names - The package root,types,util,parser.avro,parser.asyncapi,parser.base,parser.jsonschemaand__main__now define__dir__, sodir()now includes lazy names such asStrictTypes,BaseModel,SafeLoader,dataclass_model,msgspec_model,TypedDictModel,Config,generate_dynamic_modelsandload_pyproject_config, which it used to leave out. Anything that walksdir()and reads each attribute, such asinspect.getmembers(),help()and REPL completion, now imports the modules behind those names. For example, it loads the dataclass and msgspec model modules forparser.baseand the protobuf and XML Schema parsers forparser.asyncapi. Also, once a resolver name indatamodel_code_generator.referencehas been read,dir()and__all__now list it once instead of twice. (#7155)Default Behavior Changes
--schema-version- This affects the experimental--generate-clientoption with AsyncAPI input. Channels are now read by the AsyncAPI version the models are read by:--schema-version 2.0or3.0where it is given, else the document'sasyncapifield. Before, only theasyncapifield was read. A run that passes a--schema-versiondifferent 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
--generate-clientoption with AsyncAPI input. A message$refthat 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 thepublishoperation's reasons before thesubscribeoperation's. Tooling that matches these warnings or error messages must be updated (#7163)What's Changed
X as Xform by @koxudaxi in #7203Full Changelog: datamodel-code-generator/datamodel-code-generator@0.98.0...0.99.0
v0.98.0Compare Source
v0.97.0Compare Source
Configuration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.