Repository navigation
chore(deps): update dependency datamodel-code-generator to v0.96.0 - #713
Merged
Merged
Conversation
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||||||||||||||
Diff for stage: DefaultStageWarning 3 Destructive Changes No Changes for stack: GitHubOidcStack ✅ Diff for stack: Service-prod - 3 to add, 3 to update, 3 to destroy ❌Details
Resources
[-] AWS::ApiGateway::Deployment AuthApiDeploymentB62B2E46460efaf687368da11b4a342765c33a3f destroy
[-] AWS::ApiGateway::Deployment TokenApiDeploymentB896C219bd25d8166f89c24fa0875a04551bfe71 destroy
[-] AWS::ApiGateway::Deployment ProfileApiDeployment84A5441558bbeb729c9948a561ae2f5d823c569d destroy
[+] AWS::ApiGateway::Deployment AuthApiDeploymentB62B2E466a5f0bdf9fc95b11200b268147467c93
[+] AWS::ApiGateway::Deployment TokenApiDeploymentB896C21966ba8c17aaa899324c8b3359656ddc29
[+] AWS::ApiGateway::Deployment ProfileApiDeployment84A54415f5cec6ac6585d29a9fe6765c870d647b
[~] AWS::Lambda::Function AuthApiHandlerED50ACFA
├─ [~] Code
│ └─ [~] .S3Key:
│ ├─ [-] 1a673bf93273755f71a7de38f27ac2e17cc7d6aa196cf1e4092907feaf4d3166.zip
│ └─ [+] e1f26169d591eb1fd0cab80db1430a5d69f1d27c01ef08598ca2bcc9fcbc10a3.zip
└─ [~] Metadata
└─ [~] .aws:asset:path:
├─ [-] asset.1a673bf93273755f71a7de38f27ac2e17cc7d6aa196cf1e4092907feaf4d3166
└─ [+] asset.e1f26169d591eb1fd0cab80db1430a5d69f1d27c01ef08598ca2bcc9fcbc10a3
[~] AWS::Lambda::Function TokenApiHandler2E66DB25
├─ [~] Code
│ └─ [~] .S3Key:
│ ├─ [-] 1a673bf93273755f71a7de38f27ac2e17cc7d6aa196cf1e4092907feaf4d3166.zip
│ └─ [+] e1f26169d591eb1fd0cab80db1430a5d69f1d27c01ef08598ca2bcc9fcbc10a3.zip
└─ [~] Metadata
└─ [~] .aws:asset:path:
├─ [-] asset.1a673bf93273755f71a7de38f27ac2e17cc7d6aa196cf1e4092907feaf4d3166
└─ [+] asset.e1f26169d591eb1fd0cab80db1430a5d69f1d27c01ef08598ca2bcc9fcbc10a3
[~] AWS::Lambda::Function ProfileApiHandler9B65A298
├─ [~] Code
│ └─ [~] .S3Key:
│ ├─ [-] 1a673bf93273755f71a7de38f27ac2e17cc7d6aa196cf1e4092907feaf4d3166.zip
│ └─ [+] e1f26169d591eb1fd0cab80db1430a5d69f1d27c01ef08598ca2bcc9fcbc10a3.zip
└─ [~] Metadata
└─ [~] .aws:asset:path:
├─ [-] asset.1a673bf93273755f71a7de38f27ac2e17cc7d6aa196cf1e4092907feaf4d3166
└─ [+] asset.e1f26169d591eb1fd0cab80db1430a5d69f1d27c01ef08598ca2bcc9fcbc10a3
[~] AWS::Lambda::Function ApiHandler5E7490E8
├─ [~] Code
│ └─ [~] .S3Key:
│ ├─ [-] 1a673bf93273755f71a7de38f27ac2e17cc7d6aa196cf1e4092907feaf4d3166.zip
│ └─ [+] e1f26169d591eb1fd0cab80db1430a5d69f1d27c01ef08598ca2bcc9fcbc10a3.zip
└─ [~] Metadata
└─ [~] .aws:asset:path:
├─ [-] asset.1a673bf93273755f71a7de38f27ac2e17cc7d6aa196cf1e4092907feaf4d3166
└─ [+] asset.e1f26169d591eb1fd0cab80db1430a5d69f1d27c01ef08598ca2bcc9fcbc10a3
[~] AWS::ApiGateway::Stage AuthApiDeploymentStageprodB0E4172A
└─ [~] DeploymentId
└─ [~] .Ref:
├─ [-] AuthApiDeploymentB62B2E46460efaf687368da11b4a342765c33a3f
└─ [+] AuthApiDeploymentB62B2E466a5f0bdf9fc95b11200b268147467c93
[~] AWS::ApiGateway::Stage TokenApiDeploymentStageprod11035AE4
└─ [~] DeploymentId
└─ [~] .Ref:
├─ [-] TokenApiDeploymentB896C219bd25d8166f89c24fa0875a04551bfe71
└─ [+] TokenApiDeploymentB896C21966ba8c17aaa899324c8b3359656ddc29
[~] AWS::ApiGateway::Stage ProfileApiDeploymentStageprodF609D968
└─ [~] DeploymentId
└─ [~] .Ref:
├─ [-] ProfileApiDeployment84A5441558bbeb729c9948a561ae2f5d823c569d
└─ [+] ProfileApiDeployment84A54415f5cec6ac6585d29a9fe6765c870d647b
[~] AWS::Lambda::Function ChannelApiHandler02759D57
├─ [~] Code
│ └─ [~] .S3Key:
│ ├─ [-] 1a673bf93273755f71a7de38f27ac2e17cc7d6aa196cf1e4092907feaf4d3166.zip
│ └─ [+] e1f26169d591eb1fd0cab80db1430a5d69f1d27c01ef08598ca2bcc9fcbc10a3.zip
└─ [~] Metadata
└─ [~] .aws:asset:path:
├─ [-] asset.1a673bf93273755f71a7de38f27ac2e17cc7d6aa196cf1e4092907feaf4d3166
└─ [+] asset.e1f26169d591eb1fd0cab80db1430a5d69f1d27c01ef08598ca2bcc9fcbc10a3
No Changes for stack: Frontend-prod ✅ Generated for commit 6aaf048 at 2026-11-13T21:56:17.213Z |
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.95.0→==0.96.0Release Notes
datamodel-code-generator/datamodel-code-generator (datamodel-code-generator)
v0.96.0Compare Source
Breaking Changes
Code Generation Changes
text/event-streamor a JSON Lines or NDJSON type (application/jsonl,application/jsonlines,application/ndjson,application/x-jsonl,application/x-jsonlines,application/x-ndjson) whose schema is only anitemSchema, the generated client no longer binds the model of the item schema's array projection to the operation's response. The operation method, itswith_responseview and its result type alias now read the whole body raw:strfor an event stream (a text branch) andbytesfor JSON Lines or NDJSON (a binary branch). For example,WatchEventsResponsebecomesstr, and a JSON plus JSON Lines response becomesmodels.ExcerptGetResponse | bytes. Code that relied on the old result type must parse the raw body or use the new stream helper that regenerated clients now get atclient.protocols.<resource>.<method>, which yields typed items (#6767)itemSchemareferences - In generated Python clients, SSE, JSON Lines and NDJSON stream helpers whoseitemSchemais a bare$refnow use the referenced model, for exampleEventStream[models.LogEntry],AsyncEventStream[models.Event]andEventPlan[models.LogEntry]. Before, they used the duplicateItemSchemaorItemSchemaModelmodel generated at the item schema location. The codecs in_generated/model_bindings.pychange to match. With Pydantic v2 output, decoded stream items are now instances of the referenced model, for examplemodels.LogEntryinstead ofmodels.ItemSchemaModel, and validation error messages name that model. With dataclasses output, only the type annotations change. Code that annotates,isinstance-checks or pattern-matches stream items againstmodels.ItemSchemaormodels.ItemSchemaModelhas to switch to the referenced model (#6771)--read-object-keywords-by-type- With--read-object-keywords-by-type, which the standard and practical2026111presets also turn on, the check for ananyOforoneOfbranch that admits no object now looks at more than a declaredtypeor a$refto such a schema. It also countsconst,enum, nestedallOf,anyOfandoneOfparts, false schemas, and the full schema a$refnames together with the keywords beside it. Branches found this way are now read without the siblingproperties,patternProperties,additionalProperties,propertyNames,unevaluatedProperties,required,minPropertiesandmaxProperties. For example, ananyOfof aconstbranch, anenumbranch and an object branch next topropertiesandrequiredused to generate a single model fieldOwner | Noneand now generates a union likeLiteral['none'] | Owner | Owner1 | None. That adds new enum classes and can shift model names: the formerOwnermodel becomesOwner1. Under--generate-schema-validatorsthese sites also become unions instead of one validated object model. Output without the option is unchanged (#6777)pydantic_v2.BaseModelandpydantic_v2.dataclassoutput, apatterncontaining a single quote used to be written as a single-quoted raw literal with the quote escaped by a backslash, for exampleconstr(pattern=r'^it\'s$'). Because raw literals keep backslashes, the runtime pattern string had an extra backslash before the quote. The generator now picks a quote character the pattern does not use, so this becomesconstr(pattern=r"^it's$"). A pattern containing both quote characters is now written as a plain (non-raw) literal, for example'^a-z\'"+$'instead ofr'^a-z\'"+$', and backslashes in such patterns are doubled. A pattern that already holds a backslash before a quote changes only in source text:"^don\\'t$"becomesr"^don\'t$". This affects string field patterns,propertyNameskey patterns, andStringConstraintswritten under--field-constraintsor--use-annotated. Python'srematches the same values, so validation does not change. However, the pattern stored inconstrorStringConstraints, and the pattern thatmodel_json_schema()publishes (for example in FastAPI OpenAPI docs), no longer has the extra backslash. The generated source text for these fields also changes, so snapshot tests or committed generated code will show differences after regenerating (#6790)Error Handling Changes
itemSchema, generation now derives a stream helper named<resource>.<method>for each such operation. A helper in the protocols helper file whose name contains a derived name, or is contained in one (for example a declared helper nameddefaultbeside the deriveddefault.watch_events), now fails generation with anE_NAME_COLLISIONconfig diagnostic reported under the client protocols option. The same helper file used to generate. To fix it, rename the declared helper (#6767)datamodel_code_generator, picked by a fixedstacklevelat each call site. They are now attributed to the outermost frame outside the package. In the Python API that is the user module that calledgenerate()or another API. In the CLI it is the console script, or therunpyframe forpython -m. This covers the optional-dependency notices (Genson, Jinja2, Black/isort, Pydantic runtime minimum), the default formatters notice, the deprecated--validation,--parent-scoped-namingand--allow-extra-fieldsnotices, the remote$refdefault notice, the OpenAPInullableand JSON Schema arrayitemsnotices,PythonVersion.has_type_aliasand the other registry notices. As a result, each notice reports a different filename, line number and module. Filters that matched these notices bymodule="datamodel_code_generator"no longer suppress them, whether set inwarnings.filterwarnings,-W,PYTHONWARNINGSor pytestfilterwarnings. To silence them, filter by category and message, or target the calling module, for examplewarnings.filterwarnings("ignore", category=FutureWarning, module="mypackage.models"). Python's default filters showDeprecationWarningonly when it is attributed to__main__. A script that calls the API directly may therefore now show registry notices of categoryDeprecationWarningthat were hidden before (#6793)What's Changed
New Contributors
Full Changelog: datamodel-code-generator/datamodel-code-generator@0.95.0...0.96.0
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.