dependabot[bot] opened a new pull request, #16373: URL: https://github.com/apache/iceberg/pull/16373
Bumps [datamodel-code-generator](https://github.com/koxudaxi/datamodel-code-generator) from 0.56.1 to 0.57.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/koxudaxi/datamodel-code-generator/releases">datamodel-code-generator's releases</a>.</em></p> <blockquote> <h2>0.57.0</h2> <h2>Breaking Changes</h2> <h3>Code Generation Changes</h3> <ul> <li><code>--use-default</code> no longer makes required fields nullable - Previously, <code>--use-default</code> turned required fields into optional nullable fields (e.g., <code>status: str | None = 'active'</code>). Now required fields keep their original non-nullable type and just get the default value rendered (e.g., <code>status: str = 'active'</code>). Users whose downstream code depends on these fields being <code>Optional</code>/nullable will need to update. (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3054">#3054</a>)</li> <li>Required model-ref fields no longer render defaults without <code>--use-default</code> - Previously, required fields referencing models (e.g., <code>shipping_address: Address</code>) inconsistently rendered defaults with <code>validate_default=True</code> while scalar required fields did not. Now all required fields consistently omit defaults unless <code>--use-default</code> is passed. Users who relied on the previous behavior where model-ref required fields had defaults rendered will see those defaults removed. (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3054">#3054</a>)</li> </ul> <h3>Custom Template Update Required</h3> <ul> <li>Built-in Jinja2 templates now use <code>field.use_default_with_required</code> - The built-in templates for <code>BaseModel</code>, <code>dataclass</code>, <code>pydantic_v2/dataclass</code>, and <code>msgspec</code> were updated to check <code>field.use_default_with_required</code> alongside <code>field.required</code> when deciding whether to render defaults. Custom templates that replicate the old default-rendering logic (e.g., <code>{%- if not field.required %}</code>) will still work but won't support the new <code>--use-default</code> behavior for required fields. To get the updated behavior, custom templates should change conditions like <code>not field.required</code> to <code>(not field.required or field.use_default_with_required)</code>. (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3054">#3054</a>)</li> </ul> <h2>What's Changed</h2> <ul> <li>Harden workflow credentials by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3095">koxudaxi/datamodel-code-generator#3095</a></li> <li>Fix release automation workflows by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3110">koxudaxi/datamodel-code-generator#3110</a></li> <li>Enforce shared assertions in e2e tests by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3108">koxudaxi/datamodel-code-generator#3108</a></li> <li>Fix docs preview required check by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3112">koxudaxi/datamodel-code-generator#3112</a></li> <li>Fix required field default rendering and --use-default nullable types by <a href="https://github.com/butvinm"><code>@butvinm</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3054">koxudaxi/datamodel-code-generator#3054</a></li> <li>Remove unused CLI doc schema version lookup by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3113">koxudaxi/datamodel-code-generator#3113</a></li> <li>Fix byte to binary type mapping by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3114">koxudaxi/datamodel-code-generator#3114</a></li> <li>Create generated docs sync PRs by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3117">koxudaxi/datamodel-code-generator#3117</a></li> <li>Support local HTTP ref paths by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3116">koxudaxi/datamodel-code-generator#3116</a></li> <li>Fix reuse discriminator literals by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3115">koxudaxi/datamodel-code-generator#3115</a></li> <li>docstrings that can be single line to be formatted on a single line by <a href="https://github.com/kevin-paulson-mindbridge-ai"><code>@kevin-paulson-mindbridge-ai</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3107">koxudaxi/datamodel-code-generator#3107</a></li> <li>Fix indefinite hang on OpenAPI schemas with cyclic model dependencies by <a href="https://github.com/kevin-paulson-mindbridge-ai"><code>@kevin-paulson-mindbridge-ai</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3078">koxudaxi/datamodel-code-generator#3078</a></li> <li>Add OpenAPI enum literal alias regression test by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3124">koxudaxi/datamodel-code-generator#3124</a></li> <li>Fix pydantic model extra warnings by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3127">koxudaxi/datamodel-code-generator#3127</a></li> <li>Fix snake case array discriminator by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3125">koxudaxi/datamodel-code-generator#3125</a></li> <li>Fix serialization alias choices by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3126">koxudaxi/datamodel-code-generator#3126</a></li> <li>Fix generated docs sync prompt snapshots by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3129">koxudaxi/datamodel-code-generator#3129</a></li> <li>Add manual generated docs sync trigger by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3130">koxudaxi/datamodel-code-generator#3130</a></li> <li>Use source tree for generated prompt snapshots by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3132">koxudaxi/datamodel-code-generator#3132</a></li> <li>Propagate enum member descriptions for anyOf const pattern by <a href="https://github.com/mvanhorn"><code>@mvanhorn</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3133">koxudaxi/datamodel-code-generator#3133</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/koxudaxi/datamodel-code-generator/blob/main/CHANGELOG.md">datamodel-code-generator's changelog</a>.</em></p> <blockquote> <h2><a href="https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.57.0">0.57.0</a> - 2026-05-07</h2> <h2>Breaking Changes</h2> <h3>Code Generation Changes</h3> <ul> <li><code>--use-default</code> no longer makes required fields nullable - Previously, <code>--use-default</code> turned required fields into optional nullable fields (e.g., <code>status: str | None = 'active'</code>). Now required fields keep their original non-nullable type and just get the default value rendered (e.g., <code>status: str = 'active'</code>). Users whose downstream code depends on these fields being <code>Optional</code>/nullable will need to update. (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3054">#3054</a>)</li> <li>Required model-ref fields no longer render defaults without <code>--use-default</code> - Previously, required fields referencing models (e.g., <code>shipping_address: Address</code>) inconsistently rendered defaults with <code>validate_default=True</code> while scalar required fields did not. Now all required fields consistently omit defaults unless <code>--use-default</code> is passed. Users who relied on the previous behavior where model-ref required fields had defaults rendered will see those defaults removed. (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3054">#3054</a>)</li> </ul> <h3>Custom Template Update Required</h3> <ul> <li>Built-in Jinja2 templates now use <code>field.use_default_with_required</code> - The built-in templates for <code>BaseModel</code>, <code>dataclass</code>, <code>pydantic_v2/dataclass</code>, and <code>msgspec</code> were updated to check <code>field.use_default_with_required</code> alongside <code>field.required</code> when deciding whether to render defaults. Custom templates that replicate the old default-rendering logic (e.g., <code>{%- if not field.required %}</code>) will still work but won't support the new <code>--use-default</code> behavior for required fields. To get the updated behavior, custom templates should change conditions like <code>not field.required</code> to <code>(not field.required or field.use_default_with_required)</code>. (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3054">#3054</a>)</li> </ul> <h2>What's Changed</h2> <ul> <li>Harden workflow credentials by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3095">koxudaxi/datamodel-code-generator#3095</a></li> <li>Fix release automation workflows by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3110">koxudaxi/datamodel-code-generator#3110</a></li> <li>Enforce shared assertions in e2e tests by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3108">koxudaxi/datamodel-code-generator#3108</a></li> <li>Fix docs preview required check by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3112">koxudaxi/datamodel-code-generator#3112</a></li> <li>Fix required field default rendering and --use-default nullable types by <a href="https://github.com/butvinm"><code>@butvinm</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3054">koxudaxi/datamodel-code-generator#3054</a></li> <li>Remove unused CLI doc schema version lookup by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3113">koxudaxi/datamodel-code-generator#3113</a></li> <li>Fix byte to binary type mapping by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3114">koxudaxi/datamodel-code-generator#3114</a></li> <li>Create generated docs sync PRs by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3117">koxudaxi/datamodel-code-generator#3117</a></li> <li>Support local HTTP ref paths by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3116">koxudaxi/datamodel-code-generator#3116</a></li> <li>Fix reuse discriminator literals by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3115">koxudaxi/datamodel-code-generator#3115</a></li> <li>docstrings that can be single line to be formatted on a single line by <a href="https://github.com/kevin-paulson-mindbridge-ai"><code>@kevin-paulson-mindbridge-ai</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3107">koxudaxi/datamodel-code-generator#3107</a></li> <li>Fix indefinite hang on OpenAPI schemas with cyclic model dependencies by <a href="https://github.com/kevin-paulson-mindbridge-ai"><code>@kevin-paulson-mindbridge-ai</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3078">koxudaxi/datamodel-code-generator#3078</a></li> <li>Add OpenAPI enum literal alias regression test by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3124">koxudaxi/datamodel-code-generator#3124</a></li> <li>Fix pydantic model extra warnings by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3127">koxudaxi/datamodel-code-generator#3127</a></li> <li>Fix snake case array discriminator by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3125">koxudaxi/datamodel-code-generator#3125</a></li> <li>Fix serialization alias choices by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3126">koxudaxi/datamodel-code-generator#3126</a></li> <li>Fix generated docs sync prompt snapshots by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3129">koxudaxi/datamodel-code-generator#3129</a></li> <li>Add manual generated docs sync trigger by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3130">koxudaxi/datamodel-code-generator#3130</a></li> <li>Use source tree for generated prompt snapshots by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3132">koxudaxi/datamodel-code-generator#3132</a></li> <li>Propagate enum member descriptions for anyOf const pattern by <a href="https://github.com/mvanhorn"><code>@mvanhorn</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3133">koxudaxi/datamodel-code-generator#3133</a></li> <li>Allow generated prompt snapshot updates by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3134">koxudaxi/datamodel-code-generator#3134</a></li> <li>Write generated prompt snapshots directly by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3135">koxudaxi/datamodel-code-generator#3135</a></li> <li>Preserve tox python preference for generated docs by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3136">koxudaxi/datamodel-code-generator#3136</a></li> <li>Sync generated docs by <a href="https://github.com/dcg-generated-docs"><code>@dcg-generated-docs</code></a>[bot] in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3137">koxudaxi/datamodel-code-generator#3137</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/mvanhorn"><code>@mvanhorn</code></a> made their first contribution in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3133">koxudaxi/datamodel-code-generator#3133</a></li> <li><a href="https://github.com/dcg-generated-docs"><code>@dcg-generated-docs</code></a>[bot] made their first contribution in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3137">koxudaxi/datamodel-code-generator#3137</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/koxudaxi/datamodel-code-generator/compare/0.56.1...0.57.0">https://github.com/koxudaxi/datamodel-code-generator/compare/0.56.1...0.57.0</a></p> <hr /> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/koxudaxi/datamodel-code-generator/commit/d0aa6ab9912603a5e8b7c78ff62a1893078542d4"><code>d0aa6ab</code></a> docs: sync generated docs (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3137">#3137</a>)</li> <li><a href="https://github.com/koxudaxi/datamodel-code-generator/commit/7bd643f3dacdd9f09093bc06a61b0eef49319451"><code>7bd643f</code></a> Preserve tox python preference for generated docs (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3136">#3136</a>)</li> <li><a href="https://github.com/koxudaxi/datamodel-code-generator/commit/64f218a5711dfde954e50eb6b50c47b254fd35b4"><code>64f218a</code></a> Write generated prompt snapshots directly (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3135">#3135</a>)</li> <li><a href="https://github.com/koxudaxi/datamodel-code-generator/commit/a7d1e9c47a8603ffd7668264a4e8fe02553d0f90"><code>a7d1e9c</code></a> Allow generated prompt snapshot updates (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3134">#3134</a>)</li> <li><a href="https://github.com/koxudaxi/datamodel-code-generator/commit/9210c193922c52949e288e8f68e195d56acd34b4"><code>9210c19</code></a> Propagate enum member descriptions for anyOf const pattern (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3133">#3133</a>)</li> <li><a href="https://github.com/koxudaxi/datamodel-code-generator/commit/928ba552f4190f0b4c2390d135dcbbb6048ddfc3"><code>928ba55</code></a> Use source tree for generated prompt snapshots (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3132">#3132</a>)</li> <li><a href="https://github.com/koxudaxi/datamodel-code-generator/commit/b59971413184e9151882cb0b5906acbf3b3f4df8"><code>b599714</code></a> Add manual generated docs sync trigger (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3130">#3130</a>)</li> <li><a href="https://github.com/koxudaxi/datamodel-code-generator/commit/93f2bce292f82fde15fe7ad8d4e0eeb2c7fdbb12"><code>93f2bce</code></a> Fix generated docs sync prompt snapshots (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3129">#3129</a>)</li> <li><a href="https://github.com/koxudaxi/datamodel-code-generator/commit/919f191f896af8bf62d7aafe9e19a98cf9a05efc"><code>919f191</code></a> Fix serialization alias choices (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3126">#3126</a>)</li> <li><a href="https://github.com/koxudaxi/datamodel-code-generator/commit/90b0729b303be4246e4ce9babf825d0e4170b9f7"><code>90b0729</code></a> Fix snake case array discriminator (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3125">#3125</a>)</li> <li>Additional commits viewable in <a href="https://github.com/koxudaxi/datamodel-code-generator/compare/0.56.1...0.57.0">compare view</a></li> </ul> </details> <br /> [](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) </details> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
