Skip to content

Commit 457aaa8

Browse files
dependabot[bot]AbhiPrasadclaude
authored
build(deps-dev): bump datamodel-code-generator from 0.72.4 to 0.81.0 in /py (#908)
Bumps [datamodel-code-generator](https://github.com/datamodel-code-generator/datamodel-code-generator) from 0.72.4 to 0.81.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/datamodel-code-generator/datamodel-code-generator/releases">datamodel-code-generator's releases</a>.</em></p> <blockquote> <h2>0.81.0</h2> <h2>Breaking Changes</h2> <h3>Code Generation Changes</h3> <ul> <li>Undeclared required keys now retained in variant runtime validation - When combining <code>--read-only-write-only-model-type</code> request/response variants with <code>--schema-validator-type</code> runtime validators, generated models now keep runtime validation rules for required keys that are not declared as properties (for example keys required via additionalProperties or if/then/else), whereas these rules were previously dropped from the variant models. Regenerated Request and Response models therefore enforce stricter validation and may reject payloads that the previously generated validators accepted (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/4055">#4055</a>)</li> </ul> <!-- raw HTML omitted --> <!-- raw HTML omitted --> <!-- raw HTML omitted --> <!-- raw HTML omitted --> <!-- raw HTML omitted --> <!-- raw HTML omitted --> <!-- raw HTML omitted --> <h2>What's Changed</h2> <ul> <li>Fix parser template data reuse by <a href="https://github.com/koxudaxi"><code>@​koxudaxi</code></a> in <a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/pull/4054">datamodel-code-generator/datamodel-code-generator#4054</a></li> <li>Fix required validation in request and response models by <a href="https://github.com/koxudaxi"><code>@​koxudaxi</code></a> in <a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/pull/4055">datamodel-code-generator/datamodel-code-generator#4055</a></li> <li>Share JSON Schema reference rewriting across inputs by <a href="https://github.com/koxudaxi"><code>@​koxudaxi</code></a> in <a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/pull/4057">datamodel-code-generator/datamodel-code-generator#4057</a></li> <li>Move output model decisions out of parsers by <a href="https://github.com/koxudaxi"><code>@​koxudaxi</code></a> in <a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/pull/4058">datamodel-code-generator/datamodel-code-generator#4058</a></li> <li>Move output configuration out of parsers by <a href="https://github.com/koxudaxi"><code>@​koxudaxi</code></a> in <a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/pull/4059">datamodel-code-generator/datamodel-code-generator#4059</a></li> <li>Guard output policy and private parser boundaries by <a href="https://github.com/koxudaxi"><code>@​koxudaxi</code></a> in <a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/pull/4060">datamodel-code-generator/datamodel-code-generator#4060</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/datamodel-code-generator/datamodel-code-generator/compare/0.80.0...0.81.0">https://github.com/datamodel-code-generator/datamodel-code-generator/compare/0.80.0...0.81.0</a></p> <h2>0.80.0</h2> <h2>Breaking Changes</h2> <h3>Code Generation Changes</h3> <ul> <li>Python union annotations preserve unsupported member types - When generating from Python input models, unions containing members such as <code>Callable</code> retain each member type and the original union order instead of repeating the first non-null type. Regenerated annotations change for the affected unions and nested containers. (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/3947">#3947</a>)</li> <li>Optional nested factories require a callable empty constructor - With <code>--use-default-factory-for-optional-nested-models</code>, an optional child with required constructor fields, including inherited fields, keeps its normal <code>None</code> or <code>UNSET</code> default instead of receiving a factory that fails when called without arguments. (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/3953">#3953</a>)</li> <li>Safe frozen set items use native Pydantic hash generation - Safely hashable frozen Pydantic v2 models used as set or frozenset items rely on the native hash in place of the explicit identity-hash assignment. Mutable models and models outside the supported safe cases retain the previous generated hash behavior. (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/4025">#4025</a>)</li> <li>GraphQL msgspec typename fields retain separate inherited slots - For affected GraphQL inheritance collisions, generated models keep inherited synthetic typename slots separate from colliding child user fields, which receive distinct Python names while retaining their wire aliases. Python attribute names in these affected hierarchies can differ from earlier output. (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/4045">#4045</a>)</li> <li>Constrained root aliases retain their validation - With <code>--use-root-model-type-alias</code>, constraints are retained in the alias where supported; affected roots otherwise use a <code>RootModel</code> class instead of an unconstrained alias. Unconstrained aliases retain their prior form, and an existing custom root-alias template keeps its selection and remains responsible for its own constraints. (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/3962">#3962</a>)</li> <li>Eligible compound property names use string key types - Eligible string alternatives in <code>propertyNames</code> generate inline constrained string key types instead of nested-model keys. This changes ordinary key annotations for affected schemas; custom schema runtime validators remain conditional on <code>--schema-validator-type pydantic-v2</code>. (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/3970">#3970</a>)</li> <li>Opt-in schema validators enforce undeclared required names - With <code>--schema-validator-type pydantic-v2</code>, required property names absent from generated fields are checked against the raw object input, including applicable pattern intersections. Payloads missing those required names are rejected where the previous validators accepted them; this fix does not add a validator when the option is disabled. (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/3988">#3988</a>)</li> <li>Mapped allOf roots retain compatible constraints - For affected <code>allOf</code> roots with an outer format or type mapping, compatible numeric or string constraints are preserved while constraints incompatible with the mapped runtime type are omitted. Regenerated annotations change for these roots and avoid applying incompatible constraints to date, UUID, or other mapped values. (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/4043">#4043</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/datamodel-code-generator/datamodel-code-generator/blob/main/CHANGELOG.md">datamodel-code-generator's changelog</a>.</em></p> <blockquote> <h2><a href="https://github.com/datamodel-code-generator/datamodel-code-generator/releases/tag/0.81.0">0.81.0</a> - 2026-09-14</h2> <h2>Breaking Changes</h2> <h3>Code Generation Changes</h3> <ul> <li>Undeclared required keys now retained in variant runtime validation - When combining <code>--read-only-write-only-model-type</code> request/response variants with <code>--schema-validator-type</code> runtime validators, generated models now keep runtime validation rules for required keys that are not declared as properties (for example keys required via additionalProperties or if/then/else), whereas these rules were previously dropped from the variant models. Regenerated Request and Response models therefore enforce stricter validation and may reject payloads that the previously generated validators accepted (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/4055">#4055</a>)</li> </ul> <!-- raw HTML omitted --> <!-- raw HTML omitted --> <!-- raw HTML omitted --> <!-- raw HTML omitted --> <!-- raw HTML omitted --> <!-- raw HTML omitted --> <!-- raw HTML omitted --> <h2>What's Changed</h2> <ul> <li>Fix parser template data reuse by <a href="https://github.com/koxudaxi"><code>@​koxudaxi</code></a> in <a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/pull/4054">datamodel-code-generator/datamodel-code-generator#4054</a></li> <li>Fix required validation in request and response models by <a href="https://github.com/koxudaxi"><code>@​koxudaxi</code></a> in <a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/pull/4055">datamodel-code-generator/datamodel-code-generator#4055</a></li> <li>Share JSON Schema reference rewriting across inputs by <a href="https://github.com/koxudaxi"><code>@​koxudaxi</code></a> in <a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/pull/4057">datamodel-code-generator/datamodel-code-generator#4057</a></li> <li>Move output model decisions out of parsers by <a href="https://github.com/koxudaxi"><code>@​koxudaxi</code></a> in <a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/pull/4058">datamodel-code-generator/datamodel-code-generator#4058</a></li> <li>Move output configuration out of parsers by <a href="https://github.com/koxudaxi"><code>@​koxudaxi</code></a> in <a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/pull/4059">datamodel-code-generator/datamodel-code-generator#4059</a></li> <li>Guard output policy and private parser boundaries by <a href="https://github.com/koxudaxi"><code>@​koxudaxi</code></a> in <a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/pull/4060">datamodel-code-generator/datamodel-code-generator#4060</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/datamodel-code-generator/datamodel-code-generator/compare/0.80.0...0.81.0">https://github.com/datamodel-code-generator/datamodel-code-generator/compare/0.80.0...0.81.0</a></p> <hr /> <h2><a href="https://github.com/datamodel-code-generator/datamodel-code-generator/releases/tag/0.80.0">0.80.0</a> - 2026-09-12</h2> <h2>Breaking Changes</h2> <h3>Code Generation Changes</h3> <ul> <li>Python union annotations preserve unsupported member types - When generating from Python input models, unions containing members such as <code>Callable</code> retain each member type and the original union order instead of repeating the first non-null type. Regenerated annotations change for the affected unions and nested containers. (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/3947">#3947</a>)</li> <li>Optional nested factories require a callable empty constructor - With <code>--use-default-factory-for-optional-nested-models</code>, an optional child with required constructor fields, including inherited fields, keeps its normal <code>None</code> or <code>UNSET</code> default instead of receiving a factory that fails when called without arguments. (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/3953">#3953</a>)</li> <li>Safe frozen set items use native Pydantic hash generation - Safely hashable frozen Pydantic v2 models used as set or frozenset items rely on the native hash in place of the explicit identity-hash assignment. Mutable models and models outside the supported safe cases retain the previous generated hash behavior. (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/4025">#4025</a>)</li> <li>GraphQL msgspec typename fields retain separate inherited slots - For affected GraphQL inheritance collisions, generated models keep inherited synthetic typename slots separate from colliding child user fields, which receive distinct Python names while retaining their wire aliases. Python attribute names in these affected hierarchies can differ from earlier output. (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/4045">#4045</a>)</li> <li>Constrained root aliases retain their validation - With <code>--use-root-model-type-alias</code>, constraints are retained in the alias where supported; affected roots otherwise use a <code>RootModel</code> class instead of an unconstrained alias. Unconstrained aliases retain their prior form, and an existing custom root-alias template keeps its selection and remains responsible for its own constraints. (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/3962">#3962</a>)</li> <li>Eligible compound property names use string key types - Eligible string alternatives in <code>propertyNames</code> generate inline constrained string key types instead of nested-model keys. This changes ordinary key annotations for affected schemas; custom schema runtime validators remain conditional on <code>--schema-validator-type pydantic-v2</code>. (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/3970">#3970</a>)</li> <li>Opt-in schema validators enforce undeclared required names - With <code>--schema-validator-type pydantic-v2</code>, required property names absent from generated fields are checked against the raw object input, including applicable pattern intersections. Payloads missing those required names are rejected where the previous validators accepted them; this fix does not add a validator when the option is disabled. (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/3988">#3988</a>)</li> <li>Mapped allOf roots retain compatible constraints - For affected <code>allOf</code> roots with an outer format or type mapping, compatible numeric or string constraints are preserved while constraints incompatible with the mapped runtime type are omitted. Regenerated annotations change for these roots and avoid applying incompatible constraints to date, UUID, or other mapped values. (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/4043">#4043</a>)</li> <li>Eligible property-name alternatives use constrained string keys - For supported <code>propertyNames</code> alternatives combining ordinary string constraints with non-string-only branches, generated dictionary keys use the applicable constrained string type instead of retaining the non-string alternatives. References, complex patterns, and unsupported cases retain the existing fallback. (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/4046">#4046</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/datamodel-code-generator/datamodel-code-generator/commit/be170f756f08617953a0f029daf11fef1bf41c67"><code>be170f7</code></a> docs: update release benchmark data (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/4053">#4053</a>)</li> <li><a href="https://github.com/datamodel-code-generator/datamodel-code-generator/commit/5492ae992cea568b6ef6c6ed68f61f0ae25151cc"><code>5492ae9</code></a> Fix payload runtime compatibility (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/4063">#4063</a>)</li> <li><a href="https://github.com/datamodel-code-generator/datamodel-code-generator/commit/4401cc7a228f37a04de37abeb68509b4a812a862"><code>4401cc7</code></a> Guard output policy and private parser boundaries (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/4060">#4060</a>)</li> <li><a href="https://github.com/datamodel-code-generator/datamodel-code-generator/commit/6c800fcc6be19ed2316b99ec5d25a53b038d1809"><code>6c800fc</code></a> Move output configuration out of parsers (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/4059">#4059</a>)</li> <li><a href="https://github.com/datamodel-code-generator/datamodel-code-generator/commit/203d5b20f409e1e42b7d39385ee47ee5f7a59374"><code>203d5b2</code></a> Move output model decisions out of parsers (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/4058">#4058</a>)</li> <li><a href="https://github.com/datamodel-code-generator/datamodel-code-generator/commit/45df98a9e5aba5076319e7801dd5178a11ffa72d"><code>45df98a</code></a> Share JSON Schema reference rewriting across inputs (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/4057">#4057</a>)</li> <li><a href="https://github.com/datamodel-code-generator/datamodel-code-generator/commit/19b9465a7512e3d1a088dad8797fe61758e8daeb"><code>19b9465</code></a> Fix required validation in request and response models (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/4055">#4055</a>)</li> <li><a href="https://github.com/datamodel-code-generator/datamodel-code-generator/commit/0966214f3e2d108f693c5600f67ade44290ae797"><code>0966214</code></a> Fix parser template data reuse (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/4054">#4054</a>)</li> <li><a href="https://github.com/datamodel-code-generator/datamodel-code-generator/commit/5e94b8f4203198798ec66b8e48217f70af69a0dc"><code>5e94b8f</code></a> Merge commit from fork</li> <li><a href="https://github.com/datamodel-code-generator/datamodel-code-generator/commit/834731d56c0a90c182a0919f316069cf5ff0659a"><code>834731d</code></a> docs: update release benchmark data (<a href="https://redirect.github.com/datamodel-code-generator/datamodel-code-generator/issues/4052">#4052</a>)</li> <li>Additional commits viewable in <a href="https://github.com/datamodel-code-generator/datamodel-code-generator/compare/0.72.4...0.81.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=datamodel-code-generator&package-manager=uv&previous-version=0.72.4&new-version=0.81.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/braintrustdata/braintrust-sdk-python/network/alerts). </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Abhijeet Prasad <devabhiprasad@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent fa5f160 commit 457aaa8

57 files changed

Lines changed: 73 additions & 68 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎openapi/config.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"sha256": "877ab1fd2a22c407af1975a2f880170fb5dc2d31f550c1ce611b407037e4f221"
88
},
99
"tools": {
10-
"datamodel-code-generator": "0.72.4",
10+
"datamodel-code-generator": "0.81.0",
1111
"ruff": "0.15.21",
1212
"python": "3.14"
1313
},

‎py/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ build = [
335335
]
336336

337337
api-codegen = [
338-
"datamodel-code-generator==0.72.4",
338+
"datamodel-code-generator==0.81.0",
339339
"ruff==0.15.21",
340340
]
341341

‎py/src/braintrust/api/_generated/__init__.py‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎py/src/braintrust/api/_generated/acls.py‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎py/src/braintrust/api/_generated/agents.py‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎py/src/braintrust/api/_generated/ai_secrets.py‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎py/src/braintrust/api/_generated/api_keys.py‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎py/src/braintrust/api/_generated/dataset_snapshots.py‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎py/src/braintrust/api/_generated/datasets.py‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎py/src/braintrust/api/_generated/env_vars.py‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)