dependabot[bot] opened a new pull request, #14938: URL: https://github.com/apache/iceberg/pull/14938
Bumps [datamodel-code-generator](https://github.com/koxudaxi/datamodel-code-generator) from 0.46.0 to 0.49.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.49.0</h2> <h2>Breaking Changes</h2> <h3>SchemaParseError for Invalid Schema Data</h3> <ul> <li>Schema validation errors now raise <code>SchemaParseError</code> instead of Pydantic <code>ValidationError</code> - When parsing invalid schema data (e.g., <code>"minimum": "not_a_number"</code>), the library now raises <code>SchemaParseError</code> instead of passing through Pydantic's <code>ValidationError</code>. Users catching <code>pydantic.ValidationError</code> for schema validation failures should update to catch <code>SchemaParseError</code>. The original error is preserved in the <code>original_error</code> attribute. (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/2786">#2786</a>)</li> </ul> <h2>Bug Fixes</h2> <h3>CLI Now Correctly Outputs to stdout</h3> <ul> <li>Fixed CLI to actually output to stdout when <code>--output</code> is not specified - The <code>--output</code> argument has always documented <code>(default: stdout)</code> in <code>--help</code>, but previously no output was produced. Now works as documented. (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/2787">#2787</a>)</li> </ul> <h2>Other Notable Changes</h2> <ul> <li><code>generate()</code> function now returns <code>str | GeneratedModules | None</code> instead of <code>None</code> - Existing code ignoring the return value is unaffected. (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/2787">#2787</a>)</li> <li>Error message for multi-module output without directory changed to be more descriptive. (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/2787">#2787</a>)</li> </ul> <h2>What's Changed</h2> <ul> <li>Merge duplicate breaking change headings in release notes by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2776">koxudaxi/datamodel-code-generator#2776</a></li> <li>Optimize O(n²) algorithms and reduce redundant iterations by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2778">koxudaxi/datamodel-code-generator#2778</a></li> <li>Optimize performance with LRU caching and O(n) algorithms by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2777">koxudaxi/datamodel-code-generator#2777</a></li> <li>Optimize Jinja2 environment caching and ruff batch formatting by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2779">koxudaxi/datamodel-code-generator#2779</a></li> <li>Remove YAML parsing cache and deepcopy overhead by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2781">koxudaxi/datamodel-code-generator#2781</a></li> <li>Add performance e2e tests with large schema fixtures by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2782">koxudaxi/datamodel-code-generator#2782</a></li> <li>Convert Import class from Pydantic to dataclass for performance by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2783">koxudaxi/datamodel-code-generator#2783</a></li> <li>Add schema path context to error messages by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2786">koxudaxi/datamodel-code-generator#2786</a></li> <li>Return str or dict when output=None in generate() by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2787">koxudaxi/datamodel-code-generator#2787</a></li> <li>Add --http-timeout CLI option by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2788">koxudaxi/datamodel-code-generator#2788</a></li> <li>Pass schema extensions to templates by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2790">koxudaxi/datamodel-code-generator#2790</a></li> <li>Add propertyNames and x-propertyNames support by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2789">koxudaxi/datamodel-code-generator#2789</a></li> <li>Add support for additional_imports in extra-template-data JSON by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2793">koxudaxi/datamodel-code-generator#2793</a></li> <li>Update zensical to 0.0.15 by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2794">koxudaxi/datamodel-code-generator#2794</a></li> <li>Add --use-field-description-example option by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2792">koxudaxi/datamodel-code-generator#2792</a></li> <li>Add --collapse-root-models-name-strategy option by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2791">koxudaxi/datamodel-code-generator#2791</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/koxudaxi/datamodel-code-generator/compare/0.48.0...0.49.0">https://github.com/koxudaxi/datamodel-code-generator/compare/0.48.0...0.49.0</a></p> <h2>0.48.0</h2> <h2>Breaking Changes</h2> <!-- 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.49.0">0.49.0</a> - 2025-12-25</h2> <h2>Breaking Changes</h2> <h3>SchemaParseError for Invalid Schema Data</h3> <ul> <li>Schema validation errors now raise <code>SchemaParseError</code> instead of Pydantic <code>ValidationError</code> - When parsing invalid schema data (e.g., <code>"minimum": "not_a_number"</code>), the library now raises <code>SchemaParseError</code> instead of passing through Pydantic's <code>ValidationError</code>. Users catching <code>pydantic.ValidationError</code> for schema validation failures should update to catch <code>SchemaParseError</code>. The original error is preserved in the <code>original_error</code> attribute. (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/2786">#2786</a>)</li> </ul> <h2>Bug Fixes</h2> <h3>CLI Now Correctly Outputs to stdout</h3> <ul> <li>Fixed CLI to actually output to stdout when <code>--output</code> is not specified - The <code>--output</code> argument has always documented <code>(default: stdout)</code> in <code>--help</code>, but previously no output was produced. Now works as documented. (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/2787">#2787</a>)</li> </ul> <h2>Other Notable Changes</h2> <ul> <li><code>generate()</code> function now returns <code>str | GeneratedModules | None</code> instead of <code>None</code> - Existing code ignoring the return value is unaffected. (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/2787">#2787</a>)</li> <li>Error message for multi-module output without directory changed to be more descriptive. (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/2787">#2787</a>)</li> </ul> <h2>What's Changed</h2> <ul> <li>Merge duplicate breaking change headings in release notes by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2776">koxudaxi/datamodel-code-generator#2776</a></li> <li>Optimize O(n²) algorithms and reduce redundant iterations by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2778">koxudaxi/datamodel-code-generator#2778</a></li> <li>Optimize performance with LRU caching and O(n) algorithms by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2777">koxudaxi/datamodel-code-generator#2777</a></li> <li>Optimize Jinja2 environment caching and ruff batch formatting by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2779">koxudaxi/datamodel-code-generator#2779</a></li> <li>Remove YAML parsing cache and deepcopy overhead by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2781">koxudaxi/datamodel-code-generator#2781</a></li> <li>Add performance e2e tests with large schema fixtures by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2782">koxudaxi/datamodel-code-generator#2782</a></li> <li>Convert Import class from Pydantic to dataclass for performance by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2783">koxudaxi/datamodel-code-generator#2783</a></li> <li>Add schema path context to error messages by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2786">koxudaxi/datamodel-code-generator#2786</a></li> <li>Return str or dict when output=None in generate() by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2787">koxudaxi/datamodel-code-generator#2787</a></li> <li>Add --http-timeout CLI option by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2788">koxudaxi/datamodel-code-generator#2788</a></li> <li>Pass schema extensions to templates by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2790">koxudaxi/datamodel-code-generator#2790</a></li> <li>Add propertyNames and x-propertyNames support by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2789">koxudaxi/datamodel-code-generator#2789</a></li> <li>Add support for additional_imports in extra-template-data JSON by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2793">koxudaxi/datamodel-code-generator#2793</a></li> <li>Update zensical to 0.0.15 by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2794">koxudaxi/datamodel-code-generator#2794</a></li> <li>Add --use-field-description-example option by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2792">koxudaxi/datamodel-code-generator#2792</a></li> <li>Add --collapse-root-models-name-strategy option by <a href="https://github.com/koxudaxi"><code>@koxudaxi</code></a> in <a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/2791">koxudaxi/datamodel-code-generator#2791</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/koxudaxi/datamodel-code-generator/compare/0.48.0...0.49.0">https://github.com/koxudaxi/datamodel-code-generator/compare/0.48.0...0.49.0</a></p> <hr /> <h2><a href="https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.48.0">0.48.0</a> - 2025-12-24</h2> <h2>Breaking Changes</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/koxudaxi/datamodel-code-generator/commit/0ee5ea374c29d433403380e15b1b74b712f8adc4"><code>0ee5ea3</code></a> Add --collapse-root-models-name-strategy option (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/2791">#2791</a>)</li> <li><a href="https://github.com/koxudaxi/datamodel-code-generator/commit/75dca9da44bd78a45748a0d632d409d445ddfb2d"><code>75dca9d</code></a> Add --use-field-description-example option (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/2792">#2792</a>)</li> <li><a href="https://github.com/koxudaxi/datamodel-code-generator/commit/177b492c32444801d5f62ab773e70cd117124e94"><code>177b492</code></a> Update zensical to 0.0.15 (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/2794">#2794</a>)</li> <li><a href="https://github.com/koxudaxi/datamodel-code-generator/commit/0efefafc86b57f15eb493b3b9b0efca296b04ee7"><code>0efefaf</code></a> Add support for additional_imports in extra-template-data JSON (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/2793">#2793</a>)</li> <li><a href="https://github.com/koxudaxi/datamodel-code-generator/commit/63288b4dc19ff1707bbaec244467d3f2a83f9697"><code>63288b4</code></a> Add propertyNames and x-propertyNames support (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/2789">#2789</a>)</li> <li><a href="https://github.com/koxudaxi/datamodel-code-generator/commit/602193a93734510b3f4cec38514eb2e5f86eef68"><code>602193a</code></a> Pass schema extensions to templates (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/2790">#2790</a>)</li> <li><a href="https://github.com/koxudaxi/datamodel-code-generator/commit/f59786fd47cf1c189fcd3869eaa24a850a1e0bb2"><code>f59786f</code></a> Add --http-timeout CLI option (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/2788">#2788</a>)</li> <li><a href="https://github.com/koxudaxi/datamodel-code-generator/commit/f3029e8892d89bc6444bd5199d33a36121432797"><code>f3029e8</code></a> Return str or dict when output=None in generate() (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/2787">#2787</a>)</li> <li><a href="https://github.com/koxudaxi/datamodel-code-generator/commit/5cceb4f81de136e35d9c3ca240778c1706dc6390"><code>5cceb4f</code></a> Add schema path context to error messages (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/2786">#2786</a>)</li> <li><a href="https://github.com/koxudaxi/datamodel-code-generator/commit/a46ceb8d9e8b518bacb52448e5bd283aaca962ef"><code>a46ceb8</code></a> Convert Import class from Pydantic to dataclass for performance (<a href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/2783">#2783</a>)</li> <li>Additional commits viewable in <a href="https://github.com/koxudaxi/datamodel-code-generator/compare/0.46.0...0.49.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 merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@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]
