dependabot[bot] opened a new pull request, #66542:
URL: https://github.com/apache/airflow/pull/66542

   Updates the requirements on 
[aiosqlite](https://github.com/omnilib/aiosqlite) and 
[datamodel-code-generator](https://github.com/koxudaxi/datamodel-code-generator)
 to permit the latest version.
   Updates `aiosqlite` to 0.22.1
   <details>
   <summary>Changelog</summary>
   <p><em>Sourced from <a 
href="https://github.com/omnilib/aiosqlite/blob/main/CHANGELOG.md";>aiosqlite's 
changelog</a>.</em></p>
   <blockquote>
   <h2>v0.22.1</h2>
   <p>Bug fix release</p>
   <p>NOTE: Starting with <code>v0.22.0</code>, the 
<code>aiosqlite.Connection</code> object no longer
   inherits from <code>threading.Thread</code>. If not using aiosqlite as a 
context manager,
   clients must <code>await connection.close()</code> or call 
<code>connection.stop()</code> to ensure
   the helper thread is completed and terminated correctly. A 
<code>ResourceWarning</code>
   will be emitted for any connection that is garbage collected without being
   closed or stopped.</p>
   <ul>
   <li>Added synchronous <code>stop()</code> method to 
<code>aiosqlite.Connection</code> to enable safe
   cleanup and termination of the background thread without dependence
   on having an active event loop (<a 
href="https://redirect.github.com/omnilib/aiosqlite/issues/370";>#370</a>)</li>
   </ul>
   <pre lang="text"><code>$ git shortlog -s v0.22.0...v0.22.1
        2       Amethyst Reese
   </code></pre>
   <h2>v0.22.0</h2>
   <p>Feature release</p>
   <ul>
   <li>Support <code>set_authorizer</code> query access controls (<a 
href="https://redirect.github.com/omnilib/aiosqlite/issues/349";>#349</a>)</li>
   <li>Wait for transaction queue to complete when closing connection (<a 
href="https://redirect.github.com/omnilib/aiosqlite/issues/305";>#305</a>)</li>
   <li>Emit warning when connection goes out of scope without being closed (<a 
href="https://redirect.github.com/omnilib/aiosqlite/issues/355";>#355</a>)</li>
   <li>Remove dependency on <code>typing_extensions</code> (<a 
href="https://redirect.github.com/omnilib/aiosqlite/issues/365";>#365</a>)</li>
   </ul>
   <pre lang="text"><code>$ git shortlog -s v0.21.0...v0.22.0
        1       Alec Berryman
        1       Amethyst Reese
        1       David Andreoletti
        1       Markus Heidelberg
        1       beerpsi
       19       dependabot[bot]
   </code></pre>
   <h2>v0.21.0</h2>
   <p>Maintenance release</p>
   <ul>
   <li>Fix: close connection correctly when BaseException raised in connection 
(<a 
href="https://redirect.github.com/omnilib/aiosqlite/issues/317";>#317</a>)</li>
   <li>Metadata improvements</li>
   </ul>
   <!-- raw HTML omitted -->
   </blockquote>
   <p>... (truncated)</p>
   </details>
   <details>
   <summary>Commits</summary>
   <ul>
   <li><a 
href="https://github.com/omnilib/aiosqlite/commit/9b127cecc7de843bf4f343b6da63b641866533fb";><code>9b127ce</code></a>
 Version bump v0.22.1</li>
   <li><a 
href="https://github.com/omnilib/aiosqlite/commit/5c3f61c1ea49401f2716d8f58d494e76ca766921";><code>5c3f61c</code></a>
 Improve stop semantics for connections (<a 
href="https://redirect.github.com/omnilib/aiosqlite/issues/370";>#370</a>)</li>
   <li><a 
href="https://github.com/omnilib/aiosqlite/commit/a869d73678adbc14472e4ac2c31f4e706efe8ef3";><code>a869d73</code></a>
 Version bump v0.22.0</li>
   <li><a 
href="https://github.com/omnilib/aiosqlite/commit/1cd60adcab12347577150a6fa6c7d92b7b86d989";><code>1cd60ad</code></a>
 Emit warning if connection is deleted before it is closed (<a 
href="https://redirect.github.com/omnilib/aiosqlite/issues/355";>#355</a>)</li>
   <li><a 
href="https://github.com/omnilib/aiosqlite/commit/611d7b4f29fc3d7df6c173b2e79b0892e9d249aa";><code>611d7b4</code></a>
 Add set_authorizer support for fine-grained access control (<a 
href="https://redirect.github.com/omnilib/aiosqlite/issues/349";>#349</a>)</li>
   <li><a 
href="https://github.com/omnilib/aiosqlite/commit/81d00c8f1676851c8634ca98f99e0973083ea75f";><code>81d00c8</code></a>
 Bump actions/setup-python from 5 to 6 (<a 
href="https://redirect.github.com/omnilib/aiosqlite/issues/357";>#357</a>)</li>
   <li><a 
href="https://github.com/omnilib/aiosqlite/commit/7a26722f7e6da6a1ae0febf515b4624794173fcc";><code>7a26722</code></a>
 Bump coverage[toml] from 7.8.0 to 7.10.7 (<a 
href="https://redirect.github.com/omnilib/aiosqlite/issues/358";>#358</a>)</li>
   <li><a 
href="https://github.com/omnilib/aiosqlite/commit/445754087ec452f888cc152debf79590d8a25d86";><code>4457540</code></a>
 Bump flake8 from 7.2.0 to 7.3.0 (<a 
href="https://redirect.github.com/omnilib/aiosqlite/issues/346";>#346</a>)</li>
   <li><a 
href="https://github.com/omnilib/aiosqlite/commit/b650dad318ad72e582b7ba1143cc05f270f8ab6b";><code>b650dad</code></a>
 Bump actions/checkout from 5 to 6 (<a 
href="https://redirect.github.com/omnilib/aiosqlite/issues/366";>#366</a>)</li>
   <li><a 
href="https://github.com/omnilib/aiosqlite/commit/065ffdd1291693c5e69d2f3efff17e351d9a0163";><code>065ffdd</code></a>
 Bump mypy from 1.15.0 to 1.19.0 (<a 
href="https://redirect.github.com/omnilib/aiosqlite/issues/367";>#367</a>)</li>
   <li>Additional commits viewable in <a 
href="https://github.com/omnilib/aiosqlite/compare/v0.20.0...v0.22.1";>compare 
view</a></li>
   </ul>
   </details>
   <br />
   
   Updates `datamodel-code-generator` from 0.33.0 to 0.56.1
   <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.56.1</h2>
   <h2>What's Changed</h2>
   <ul>
   <li>Fix <code>--base-class-map</code> and 
<code>--enum-field-as-literal-map</code> long inline json support by <a 
href="https://github.com/ilovelinux";><code>@​ilovelinux</code></a> in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3075";>koxudaxi/datamodel-code-generator#3075</a></li>
   <li>Prefer CLI input over pyproject url by <a 
href="https://github.com/koxudaxi";><code>@​koxudaxi</code></a> in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3083";>koxudaxi/datamodel-code-generator#3083</a></li>
   <li>Fix relative URL refs with path-only root ids by <a 
href="https://github.com/koxudaxi";><code>@​koxudaxi</code></a> in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3085";>koxudaxi/datamodel-code-generator#3085</a></li>
   <li>tomli was merged under the name tomllib into std library <em>3.11</em> 
by <a href="https://github.com/a-detiste";><code>@​a-detiste</code></a> in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3088";>koxudaxi/datamodel-code-generator#3088</a></li>
   <li>Fix root model reuse collapse by <a 
href="https://github.com/koxudaxi";><code>@​koxudaxi</code></a> in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3089";>koxudaxi/datamodel-code-generator#3089</a></li>
   <li>Docs: describe --keep-model-order as deterministic dependency-aware 
ordering by <a href="https://github.com/koxudaxi";><code>@​koxudaxi</code></a> 
in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3090";>koxudaxi/datamodel-code-generator#3090</a></li>
   </ul>
   <h2>New Contributors</h2>
   <ul>
   <li><a href="https://github.com/a-detiste";><code>@​a-detiste</code></a> made 
their first contribution in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3088";>koxudaxi/datamodel-code-generator#3088</a></li>
   </ul>
   <p><strong>Full Changelog</strong>: <a 
href="https://github.com/koxudaxi/datamodel-code-generator/compare/0.56.0...0.56.1";>https://github.com/koxudaxi/datamodel-code-generator/compare/0.56.0...0.56.1</a></p>
   <h2>0.56.0</h2>
   <h2>Breaking Changes</h2>
   <h3>Code Generation Changes</h3>
   <ul>
   <li>Generated default field syntax changed - Fields with structured defaults 
(dicts, lists, model references) now use <code>Field(default_value, 
validate_default=True)</code> instead of <code>default_factory=lambda: 
TypeAdapter(...).validate_python(...)</code> or <code>default_factory=lambda: 
Model.model_validate(...)</code>. This produces simpler, more readable code but 
changes the generated output format. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3050";>#3050</a>)</li>
   <li>TypeAdapter import removed from generated code - Generated models no 
longer import <code>TypeAdapter</code> from pydantic since 
<code>validate_default=True</code> handles validation natively. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3050";>#3050</a>)</li>
   <li>Default value handling for model-referencing fields rewritten - Fields 
with defaults referencing Pydantic models (BaseModel, RootModel, type aliases) 
now generate <code>Field(&lt;raw_value&gt;, validate_default=True)</code> 
instead of <code>default_factory=lambda: Model.model_validate(...)</code>, 
<code>default_factory=lambda: TypeAdapter(...).validate_python(...)</code>, or 
<code>default_factory=lambda: Model(...)</code>. Empty collection defaults 
changed from 
<code>default_factory=list</code>/<code>default_factory=dict</code> to 
<code>Field([], validate_default=True)</code>/<code>Field({}, 
validate_default=True)</code>. The generated code is semantically equivalent 
under Pydantic v2 but textually different, which will break snapshot tests or 
tooling that matches exact output. <code>pydantic.TypeAdapter</code> is no 
longer imported in generated code. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3070";>#3070</a>)</li>
   <li>Default values for model-referencing fields now use 
<code>validate_default=True</code> instead of <code>default_factory</code> 
lambdas - Fields with structured defaults (dicts, lists, or scalars referencing 
Pydantic models/RootModels) previously generated <code>default_factory=lambda: 
ModelName.model_validate(value)</code> or <code>default_factory=lambda: 
ModelName(value)</code>. They now generate <code>Field(value, 
validate_default=True)</code>, producing simpler but different output. Empty 
collection defaults changed from 
<code>default_factory=list</code>/<code>default_factory=dict</code> to 
<code>Field([], validate_default=True)</code>/<code>Field({}, 
validate_default=True)</code>. Users who regenerate code will see different 
output. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3071";>#3071</a>)
   Before:
   <pre lang="python"><code>count: CountType | None = 
Field(default_factory=lambda: CountType(10))
   items: dict[str, Item] | None = Field(default_factory=dict, title='Items')
   </code></pre>
   After:
   <pre lang="python"><code>count: CountType | None = Field(10, 
validate_default=True)
   items: dict[str, Item] | None = Field({}, title='Items', 
validate_default=True)
   </code></pre>
   </li>
   <li>Default values for fields referencing models now use 
<code>validate_default=True</code> instead of 
<code>default_factory=lambda:</code> - Fields with structured defaults 
(dicts/lists) that reference Pydantic models previously generated 
<code>default_factory=lambda: Model.model_validate(...)</code> or 
<code>default_factory=lambda: TypeAdapter(Type).validate_python(...)</code> 
patterns. They now generate the raw default value directly with 
<code>validate_default=True</code> (e.g., <code>Field({'key': 'val'}, 
validate_default=True)</code> instead of <code>Field(default_factory=lambda: 
Model.model_validate({'key': 'val'}))</code>). This changes the generated code 
output and may affect users who depend on the exact generated code structure, 
pin generated output in tests, or use custom post-processing. The runtime 
behavior should be equivalent for Pydantic v2 users. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3072";>#3072</a>)</li>
   <li><code>TypeAdapter</code> import removed from generated code - Generated 
code no longer imports <code>pydantic.TypeAdapter</code> for default value 
handling. Code that previously used 
<code>TypeAdapter(...).validate_python(...)</code> in default factories now 
uses inline defaults with <code>validate_default=True</code>. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3072";>#3072</a>)</li>
   <li>Integer and boolean discriminator values now supported in generated 
Literal types - Discriminator fields previously only generated string literal 
values. They now support <code>int</code> and <code>bool</code> discriminator 
values (e.g., <code>Literal[1]</code> instead of <code>Literal['1']</code>), 
which changes generated code for schemas using integer discriminator mappings. 
(<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3072";>#3072</a>)</li>
   </ul>
   <h3>API/CLI Changes</h3>
   <ul>
   <li><code>ValidatedDefault</code> and <code>WrappedDefault</code> classes 
removed - These internal classes were exported from 
<code>datamodel_code_generator.model.base</code> and have been removed. Code 
importing these types will break:
   <pre lang="python"><code># Before (broken)
   from datamodel_code_generator.model.base import ValidatedDefault, 
WrappedDefault
   </code></pre>
   (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3050";>#3050</a>)</li>
   <li><code>SUPPORTS_WRAPPED_DEFAULT</code> and 
<code>SUPPORTS_VALIDATED_DEFAULT</code> class variables removed - These flags 
were removed from the <code>DataModel</code> base class. Custom model classes 
that override these variables will see attribute errors. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3050";>#3050</a>)</li>
   <li>Internal types <code>ValidatedDefault</code> and 
<code>WrappedDefault</code> removed - The 
<code>datamodel_code_generator.model._types</code> module was deleted and 
<code>ValidatedDefault</code>/<code>WrappedDefault</code> are no longer 
exported from <code>datamodel_code_generator.model.base</code>. Code that 
imports or subclasses these types will break. The 
<code>SUPPORTS_WRAPPED_DEFAULT</code> and 
<code>SUPPORTS_VALIDATED_DEFAULT</code> class variables were removed from 
<code>DataModel</code> and its subclasses; custom model classes referencing 
these attributes will need updating. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3070";>#3070</a>)</li>
   <li>Removed <code>WrappedDefault</code>, <code>ValidatedDefault</code> 
classes and <code>SUPPORTS_WRAPPED_DEFAULT</code>, 
<code>SUPPORTS_VALIDATED_DEFAULT</code> class variables - The 
<code>WrappedDefault</code> and <code>ValidatedDefault</code> classes from 
<code>datamodel_code_generator.model._types</code> (re-exported via 
<code>datamodel_code_generator.model.base</code>) have been deleted. The 
<code>DataModel</code> class variables <code>SUPPORTS_WRAPPED_DEFAULT</code> 
and <code>SUPPORTS_VALIDATED_DEFAULT</code> have also been removed. Code that 
imports or references these will break. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3071";>#3071</a>)</li>
   <li>New <code>--allow-remote-refs</code> / 
<code>--no-allow-remote-refs</code> CLI option and 
<code>allow_remote_refs</code> config field - Remote <code>$ref</code> fetching 
over HTTP/HTTPS now emits a deprecation warning by default. Pass 
<code>--allow-remote-refs</code> to suppress the warning, or 
<code>--no-allow-remote-refs</code> to block remote fetching entirely. In a 
future version, remote fetching will be disabled by default. Users relying on 
remote <code>$ref</code> resolution should add <code>--allow-remote-refs</code> 
to their invocations to avoid the deprecation warning and prepare for the 
future default change. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3072";>#3072</a>)</li>
   <li>New <code>SchemaFetchError</code> exception for HTTP fetch failures - 
Remote schema fetching now raises <code>SchemaFetchError</code> (instead of 
propagating raw <code>httpx</code> exceptions) on HTTP errors, non-2xx status 
codes, or unexpected HTML responses. Users catching specific <code>httpx</code> 
exceptions from remote ref resolution will need to catch 
<code>SchemaFetchError</code> instead. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3072";>#3072</a>)</li>
   </ul>
   <h3>Error Handling Changes</h3>
   <!-- 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.56.1";>0.56.1</a>
 - 2026-04-16</h2>
   <h2>What's Changed</h2>
   <ul>
   <li>Fix <code>--base-class-map</code> and 
<code>--enum-field-as-literal-map</code> long inline json support by <a 
href="https://github.com/ilovelinux";><code>@​ilovelinux</code></a> in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3075";>koxudaxi/datamodel-code-generator#3075</a></li>
   <li>Prefer CLI input over pyproject url by <a 
href="https://github.com/koxudaxi";><code>@​koxudaxi</code></a> in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3083";>koxudaxi/datamodel-code-generator#3083</a></li>
   <li>Fix relative URL refs with path-only root ids by <a 
href="https://github.com/koxudaxi";><code>@​koxudaxi</code></a> in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3085";>koxudaxi/datamodel-code-generator#3085</a></li>
   <li>tomli was merged under the name tomllib into std library <em>3.11</em> 
by <a href="https://github.com/a-detiste";><code>@​a-detiste</code></a> in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3088";>koxudaxi/datamodel-code-generator#3088</a></li>
   <li>Fix root model reuse collapse by <a 
href="https://github.com/koxudaxi";><code>@​koxudaxi</code></a> in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3089";>koxudaxi/datamodel-code-generator#3089</a></li>
   <li>Docs: describe --keep-model-order as deterministic dependency-aware 
ordering by <a href="https://github.com/koxudaxi";><code>@​koxudaxi</code></a> 
in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3090";>koxudaxi/datamodel-code-generator#3090</a></li>
   </ul>
   <h2>New Contributors</h2>
   <ul>
   <li><a href="https://github.com/a-detiste";><code>@​a-detiste</code></a> made 
their first contribution in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3088";>koxudaxi/datamodel-code-generator#3088</a></li>
   </ul>
   <p><strong>Full Changelog</strong>: <a 
href="https://github.com/koxudaxi/datamodel-code-generator/compare/0.56.0...0.56.1";>https://github.com/koxudaxi/datamodel-code-generator/compare/0.56.0...0.56.1</a></p>
   <hr />
   <h2><a 
href="https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.56.0";>0.56.0</a>
 - 2026-04-04</h2>
   <h2>Breaking Changes</h2>
   <h3>Code Generation Changes</h3>
   <ul>
   <li>Generated default field syntax changed - Fields with structured defaults 
(dicts, lists, model references) now use <code>Field(default_value, 
validate_default=True)</code> instead of <code>default_factory=lambda: 
TypeAdapter(...).validate_python(...)</code> or <code>default_factory=lambda: 
Model.model_validate(...)</code>. This produces simpler, more readable code but 
changes the generated output format. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3050";>#3050</a>)</li>
   <li>TypeAdapter import removed from generated code - Generated models no 
longer import <code>TypeAdapter</code> from pydantic since 
<code>validate_default=True</code> handles validation natively. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3050";>#3050</a>)</li>
   <li>Default value handling for model-referencing fields rewritten - Fields 
with defaults referencing Pydantic models (BaseModel, RootModel, type aliases) 
now generate <code>Field(&lt;raw_value&gt;, validate_default=True)</code> 
instead of <code>default_factory=lambda: Model.model_validate(...)</code>, 
<code>default_factory=lambda: TypeAdapter(...).validate_python(...)</code>, or 
<code>default_factory=lambda: Model(...)</code>. Empty collection defaults 
changed from 
<code>default_factory=list</code>/<code>default_factory=dict</code> to 
<code>Field([], validate_default=True)</code>/<code>Field({}, 
validate_default=True)</code>. The generated code is semantically equivalent 
under Pydantic v2 but textually different, which will break snapshot tests or 
tooling that matches exact output. <code>pydantic.TypeAdapter</code> is no 
longer imported in generated code. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3070";>#3070</a>)</li>
   <li>Default values for model-referencing fields now use 
<code>validate_default=True</code> instead of <code>default_factory</code> 
lambdas - Fields with structured defaults (dicts, lists, or scalars referencing 
Pydantic models/RootModels) previously generated <code>default_factory=lambda: 
ModelName.model_validate(value)</code> or <code>default_factory=lambda: 
ModelName(value)</code>. They now generate <code>Field(value, 
validate_default=True)</code>, producing simpler but different output. Empty 
collection defaults changed from 
<code>default_factory=list</code>/<code>default_factory=dict</code> to 
<code>Field([], validate_default=True)</code>/<code>Field({}, 
validate_default=True)</code>. Users who regenerate code will see different 
output. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3071";>#3071</a>)
   Before:
   <pre lang="python"><code>count: CountType | None = 
Field(default_factory=lambda: CountType(10))
   items: dict[str, Item] | None = Field(default_factory=dict, title='Items')
   </code></pre>
   After:
   <pre lang="python"><code>count: CountType | None = Field(10, 
validate_default=True)
   items: dict[str, Item] | None = Field({}, title='Items', 
validate_default=True)
   </code></pre>
   </li>
   <li>Default values for fields referencing models now use 
<code>validate_default=True</code> instead of 
<code>default_factory=lambda:</code> - Fields with structured defaults 
(dicts/lists) that reference Pydantic models previously generated 
<code>default_factory=lambda: Model.model_validate(...)</code> or 
<code>default_factory=lambda: TypeAdapter(Type).validate_python(...)</code> 
patterns. They now generate the raw default value directly with 
<code>validate_default=True</code> (e.g., <code>Field({'key': 'val'}, 
validate_default=True)</code> instead of <code>Field(default_factory=lambda: 
Model.model_validate({'key': 'val'}))</code>). This changes the generated code 
output and may affect users who depend on the exact generated code structure, 
pin generated output in tests, or use custom post-processing. The runtime 
behavior should be equivalent for Pydantic v2 users. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3072";>#3072</a>)</li>
   <li><code>TypeAdapter</code> import removed from generated code - Generated 
code no longer imports <code>pydantic.TypeAdapter</code> for default value 
handling. Code that previously used 
<code>TypeAdapter(...).validate_python(...)</code> in default factories now 
uses inline defaults with <code>validate_default=True</code>. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3072";>#3072</a>)</li>
   <li>Integer and boolean discriminator values now supported in generated 
Literal types - Discriminator fields previously only generated string literal 
values. They now support <code>int</code> and <code>bool</code> discriminator 
values (e.g., <code>Literal[1]</code> instead of <code>Literal['1']</code>), 
which changes generated code for schemas using integer discriminator mappings. 
(<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3072";>#3072</a>)</li>
   </ul>
   <h3>API/CLI Changes</h3>
   <ul>
   <li><code>ValidatedDefault</code> and <code>WrappedDefault</code> classes 
removed - These internal classes were exported from 
<code>datamodel_code_generator.model.base</code> and have been removed. Code 
importing these types will break:
   <pre lang="python"><code># Before (broken)
   from datamodel_code_generator.model.base import ValidatedDefault, 
WrappedDefault
   </code></pre>
   (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3050";>#3050</a>)</li>
   <li><code>SUPPORTS_WRAPPED_DEFAULT</code> and 
<code>SUPPORTS_VALIDATED_DEFAULT</code> class variables removed - These flags 
were removed from the <code>DataModel</code> base class. Custom model classes 
that override these variables will see attribute errors. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3050";>#3050</a>)</li>
   <li>Internal types <code>ValidatedDefault</code> and 
<code>WrappedDefault</code> removed - The 
<code>datamodel_code_generator.model._types</code> module was deleted and 
<code>ValidatedDefault</code>/<code>WrappedDefault</code> are no longer 
exported from <code>datamodel_code_generator.model.base</code>. Code that 
imports or subclasses these types will break. The 
<code>SUPPORTS_WRAPPED_DEFAULT</code> and 
<code>SUPPORTS_VALIDATED_DEFAULT</code> class variables were removed from 
<code>DataModel</code> and its subclasses; custom model classes referencing 
these attributes will need updating. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3070";>#3070</a>)</li>
   <li>Removed <code>WrappedDefault</code>, <code>ValidatedDefault</code> 
classes and <code>SUPPORTS_WRAPPED_DEFAULT</code>, 
<code>SUPPORTS_VALIDATED_DEFAULT</code> class variables - The 
<code>WrappedDefault</code> and <code>ValidatedDefault</code> classes from 
<code>datamodel_code_generator.model._types</code> (re-exported via 
<code>datamodel_code_generator.model.base</code>) have been deleted. The 
<code>DataModel</code> class variables <code>SUPPORTS_WRAPPED_DEFAULT</code> 
and <code>SUPPORTS_VALIDATED_DEFAULT</code> have also been removed. Code that 
imports or references these will break. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3071";>#3071</a>)</li>
   </ul>
   <!-- raw HTML omitted -->
   </blockquote>
   <p>... (truncated)</p>
   </details>
   <details>
   <summary>Commits</summary>
   <ul>
   <li><a 
href="https://github.com/koxudaxi/datamodel-code-generator/commit/6274b70b58e6dab57a1797beb8006f9fcdbf7dbe";><code>6274b70</code></a>
 Docs: describe --keep-model-order as deterministic dependency-aware ordering 
...</li>
   <li><a 
href="https://github.com/koxudaxi/datamodel-code-generator/commit/3e87a9a4a712b2cb8ad6d9faaa85c86ac8838ffe";><code>3e87a9a</code></a>
 Fix root model reuse collapse (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3089";>#3089</a>)</li>
   <li><a 
href="https://github.com/koxudaxi/datamodel-code-generator/commit/51377952477da7ef39efcb2f3e256ae51ad7a1f8";><code>5137795</code></a>
 tomli was merged under the name tomllib into std library <em>3.11</em> (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3088";>#3088</a>)</li>
   <li><a 
href="https://github.com/koxudaxi/datamodel-code-generator/commit/d7a1f7166624eadcd84e97b8d2ca09e8c6dde957";><code>d7a1f71</code></a>
 Fix relative URL refs with path-only root ids (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3085";>#3085</a>)</li>
   <li><a 
href="https://github.com/koxudaxi/datamodel-code-generator/commit/f0960e9e2362f1dab2facb55853d2e56a3a923b4";><code>f0960e9</code></a>
 Prefer CLI input over pyproject url (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3083";>#3083</a>)</li>
   <li><a 
href="https://github.com/koxudaxi/datamodel-code-generator/commit/05901ff4ad110b750dcfd996aeaca410767240cd";><code>05901ff</code></a>
 Fix <code>--base-class-map</code> and <code>--enum-field-as-literal-map</code> 
long inline json sup...</li>
   <li><a 
href="https://github.com/koxudaxi/datamodel-code-generator/commit/5ba49a72dbfc69dc781a87c6adadb785d794f475";><code>5ba49a7</code></a>
 docs: update CHANGELOG.md for 0.56.0</li>
   <li><a 
href="https://github.com/koxudaxi/datamodel-code-generator/commit/52d9ef9dec52f3ad14130710eefb010f0e492160";><code>52d9ef9</code></a>
 [codex] Refresh project usage list (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3072";>#3072</a>)</li>
   <li><a 
href="https://github.com/koxudaxi/datamodel-code-generator/commit/7d41fef7884579d728fe42a1e266d8b950ccd72d";><code>7d41fef</code></a>
 Support JSON files for mapping options (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3071";>#3071</a>)</li>
   <li><a 
href="https://github.com/koxudaxi/datamodel-code-generator/commit/5a8cd0da7a6d17bfd70c5c2623699ffc6aa818fd";><code>5a8cd0d</code></a>
 Fix non-string OpenAPI discriminator literals (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3070";>#3070</a>)</li>
   <li>Additional commits viewable in <a 
href="https://github.com/koxudaxi/datamodel-code-generator/compare/0.33.0...0.56.1";>compare
 view</a></li>
   </ul>
   </details>
   <br />
   
   Updates `datamodel-code-generator` from 0.33.0 to 0.56.1
   <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.56.1</h2>
   <h2>What's Changed</h2>
   <ul>
   <li>Fix <code>--base-class-map</code> and 
<code>--enum-field-as-literal-map</code> long inline json support by <a 
href="https://github.com/ilovelinux";><code>@​ilovelinux</code></a> in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3075";>koxudaxi/datamodel-code-generator#3075</a></li>
   <li>Prefer CLI input over pyproject url by <a 
href="https://github.com/koxudaxi";><code>@​koxudaxi</code></a> in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3083";>koxudaxi/datamodel-code-generator#3083</a></li>
   <li>Fix relative URL refs with path-only root ids by <a 
href="https://github.com/koxudaxi";><code>@​koxudaxi</code></a> in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3085";>koxudaxi/datamodel-code-generator#3085</a></li>
   <li>tomli was merged under the name tomllib into std library <em>3.11</em> 
by <a href="https://github.com/a-detiste";><code>@​a-detiste</code></a> in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3088";>koxudaxi/datamodel-code-generator#3088</a></li>
   <li>Fix root model reuse collapse by <a 
href="https://github.com/koxudaxi";><code>@​koxudaxi</code></a> in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3089";>koxudaxi/datamodel-code-generator#3089</a></li>
   <li>Docs: describe --keep-model-order as deterministic dependency-aware 
ordering by <a href="https://github.com/koxudaxi";><code>@​koxudaxi</code></a> 
in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3090";>koxudaxi/datamodel-code-generator#3090</a></li>
   </ul>
   <h2>New Contributors</h2>
   <ul>
   <li><a href="https://github.com/a-detiste";><code>@​a-detiste</code></a> made 
their first contribution in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3088";>koxudaxi/datamodel-code-generator#3088</a></li>
   </ul>
   <p><strong>Full Changelog</strong>: <a 
href="https://github.com/koxudaxi/datamodel-code-generator/compare/0.56.0...0.56.1";>https://github.com/koxudaxi/datamodel-code-generator/compare/0.56.0...0.56.1</a></p>
   <h2>0.56.0</h2>
   <h2>Breaking Changes</h2>
   <h3>Code Generation Changes</h3>
   <ul>
   <li>Generated default field syntax changed - Fields with structured defaults 
(dicts, lists, model references) now use <code>Field(default_value, 
validate_default=True)</code> instead of <code>default_factory=lambda: 
TypeAdapter(...).validate_python(...)</code> or <code>default_factory=lambda: 
Model.model_validate(...)</code>. This produces simpler, more readable code but 
changes the generated output format. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3050";>#3050</a>)</li>
   <li>TypeAdapter import removed from generated code - Generated models no 
longer import <code>TypeAdapter</code> from pydantic since 
<code>validate_default=True</code> handles validation natively. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3050";>#3050</a>)</li>
   <li>Default value handling for model-referencing fields rewritten - Fields 
with defaults referencing Pydantic models (BaseModel, RootModel, type aliases) 
now generate <code>Field(&lt;raw_value&gt;, validate_default=True)</code> 
instead of <code>default_factory=lambda: Model.model_validate(...)</code>, 
<code>default_factory=lambda: TypeAdapter(...).validate_python(...)</code>, or 
<code>default_factory=lambda: Model(...)</code>. Empty collection defaults 
changed from 
<code>default_factory=list</code>/<code>default_factory=dict</code> to 
<code>Field([], validate_default=True)</code>/<code>Field({}, 
validate_default=True)</code>. The generated code is semantically equivalent 
under Pydantic v2 but textually different, which will break snapshot tests or 
tooling that matches exact output. <code>pydantic.TypeAdapter</code> is no 
longer imported in generated code. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3070";>#3070</a>)</li>
   <li>Default values for model-referencing fields now use 
<code>validate_default=True</code> instead of <code>default_factory</code> 
lambdas - Fields with structured defaults (dicts, lists, or scalars referencing 
Pydantic models/RootModels) previously generated <code>default_factory=lambda: 
ModelName.model_validate(value)</code> or <code>default_factory=lambda: 
ModelName(value)</code>. They now generate <code>Field(value, 
validate_default=True)</code>, producing simpler but different output. Empty 
collection defaults changed from 
<code>default_factory=list</code>/<code>default_factory=dict</code> to 
<code>Field([], validate_default=True)</code>/<code>Field({}, 
validate_default=True)</code>. Users who regenerate code will see different 
output. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3071";>#3071</a>)
   Before:
   <pre lang="python"><code>count: CountType | None = 
Field(default_factory=lambda: CountType(10))
   items: dict[str, Item] | None = Field(default_factory=dict, title='Items')
   </code></pre>
   After:
   <pre lang="python"><code>count: CountType | None = Field(10, 
validate_default=True)
   items: dict[str, Item] | None = Field({}, title='Items', 
validate_default=True)
   </code></pre>
   </li>
   <li>Default values for fields referencing models now use 
<code>validate_default=True</code> instead of 
<code>default_factory=lambda:</code> - Fields with structured defaults 
(dicts/lists) that reference Pydantic models previously generated 
<code>default_factory=lambda: Model.model_validate(...)</code> or 
<code>default_factory=lambda: TypeAdapter(Type).validate_python(...)</code> 
patterns. They now generate the raw default value directly with 
<code>validate_default=True</code> (e.g., <code>Field({'key': 'val'}, 
validate_default=True)</code> instead of <code>Field(default_factory=lambda: 
Model.model_validate({'key': 'val'}))</code>). This changes the generated code 
output and may affect users who depend on the exact generated code structure, 
pin generated output in tests, or use custom post-processing. The runtime 
behavior should be equivalent for Pydantic v2 users. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3072";>#3072</a>)</li>
   <li><code>TypeAdapter</code> import removed from generated code - Generated 
code no longer imports <code>pydantic.TypeAdapter</code> for default value 
handling. Code that previously used 
<code>TypeAdapter(...).validate_python(...)</code> in default factories now 
uses inline defaults with <code>validate_default=True</code>. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3072";>#3072</a>)</li>
   <li>Integer and boolean discriminator values now supported in generated 
Literal types - Discriminator fields previously only generated string literal 
values. They now support <code>int</code> and <code>bool</code> discriminator 
values (e.g., <code>Literal[1]</code> instead of <code>Literal['1']</code>), 
which changes generated code for schemas using integer discriminator mappings. 
(<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3072";>#3072</a>)</li>
   </ul>
   <h3>API/CLI Changes</h3>
   <ul>
   <li><code>ValidatedDefault</code> and <code>WrappedDefault</code> classes 
removed - These internal classes were exported from 
<code>datamodel_code_generator.model.base</code> and have been removed. Code 
importing these types will break:
   <pre lang="python"><code># Before (broken)
   from datamodel_code_generator.model.base import ValidatedDefault, 
WrappedDefault
   </code></pre>
   (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3050";>#3050</a>)</li>
   <li><code>SUPPORTS_WRAPPED_DEFAULT</code> and 
<code>SUPPORTS_VALIDATED_DEFAULT</code> class variables removed - These flags 
were removed from the <code>DataModel</code> base class. Custom model classes 
that override these variables will see attribute errors. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3050";>#3050</a>)</li>
   <li>Internal types <code>ValidatedDefault</code> and 
<code>WrappedDefault</code> removed - The 
<code>datamodel_code_generator.model._types</code> module was deleted and 
<code>ValidatedDefault</code>/<code>WrappedDefault</code> are no longer 
exported from <code>datamodel_code_generator.model.base</code>. Code that 
imports or subclasses these types will break. The 
<code>SUPPORTS_WRAPPED_DEFAULT</code> and 
<code>SUPPORTS_VALIDATED_DEFAULT</code> class variables were removed from 
<code>DataModel</code> and its subclasses; custom model classes referencing 
these attributes will need updating. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3070";>#3070</a>)</li>
   <li>Removed <code>WrappedDefault</code>, <code>ValidatedDefault</code> 
classes and <code>SUPPORTS_WRAPPED_DEFAULT</code>, 
<code>SUPPORTS_VALIDATED_DEFAULT</code> class variables - The 
<code>WrappedDefault</code> and <code>ValidatedDefault</code> classes from 
<code>datamodel_code_generator.model._types</code> (re-exported via 
<code>datamodel_code_generator.model.base</code>) have been deleted. The 
<code>DataModel</code> class variables <code>SUPPORTS_WRAPPED_DEFAULT</code> 
and <code>SUPPORTS_VALIDATED_DEFAULT</code> have also been removed. Code that 
imports or references these will break. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3071";>#3071</a>)</li>
   <li>New <code>--allow-remote-refs</code> / 
<code>--no-allow-remote-refs</code> CLI option and 
<code>allow_remote_refs</code> config field - Remote <code>$ref</code> fetching 
over HTTP/HTTPS now emits a deprecation warning by default. Pass 
<code>--allow-remote-refs</code> to suppress the warning, or 
<code>--no-allow-remote-refs</code> to block remote fetching entirely. In a 
future version, remote fetching will be disabled by default. Users relying on 
remote <code>$ref</code> resolution should add <code>--allow-remote-refs</code> 
to their invocations to avoid the deprecation warning and prepare for the 
future default change. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3072";>#3072</a>)</li>
   <li>New <code>SchemaFetchError</code> exception for HTTP fetch failures - 
Remote schema fetching now raises <code>SchemaFetchError</code> (instead of 
propagating raw <code>httpx</code> exceptions) on HTTP errors, non-2xx status 
codes, or unexpected HTML responses. Users catching specific <code>httpx</code> 
exceptions from remote ref resolution will need to catch 
<code>SchemaFetchError</code> instead. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3072";>#3072</a>)</li>
   </ul>
   <h3>Error Handling Changes</h3>
   <!-- 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.56.1";>0.56.1</a>
 - 2026-04-16</h2>
   <h2>What's Changed</h2>
   <ul>
   <li>Fix <code>--base-class-map</code> and 
<code>--enum-field-as-literal-map</code> long inline json support by <a 
href="https://github.com/ilovelinux";><code>@​ilovelinux</code></a> in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3075";>koxudaxi/datamodel-code-generator#3075</a></li>
   <li>Prefer CLI input over pyproject url by <a 
href="https://github.com/koxudaxi";><code>@​koxudaxi</code></a> in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3083";>koxudaxi/datamodel-code-generator#3083</a></li>
   <li>Fix relative URL refs with path-only root ids by <a 
href="https://github.com/koxudaxi";><code>@​koxudaxi</code></a> in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3085";>koxudaxi/datamodel-code-generator#3085</a></li>
   <li>tomli was merged under the name tomllib into std library <em>3.11</em> 
by <a href="https://github.com/a-detiste";><code>@​a-detiste</code></a> in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3088";>koxudaxi/datamodel-code-generator#3088</a></li>
   <li>Fix root model reuse collapse by <a 
href="https://github.com/koxudaxi";><code>@​koxudaxi</code></a> in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3089";>koxudaxi/datamodel-code-generator#3089</a></li>
   <li>Docs: describe --keep-model-order as deterministic dependency-aware 
ordering by <a href="https://github.com/koxudaxi";><code>@​koxudaxi</code></a> 
in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3090";>koxudaxi/datamodel-code-generator#3090</a></li>
   </ul>
   <h2>New Contributors</h2>
   <ul>
   <li><a href="https://github.com/a-detiste";><code>@​a-detiste</code></a> made 
their first contribution in <a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/pull/3088";>koxudaxi/datamodel-code-generator#3088</a></li>
   </ul>
   <p><strong>Full Changelog</strong>: <a 
href="https://github.com/koxudaxi/datamodel-code-generator/compare/0.56.0...0.56.1";>https://github.com/koxudaxi/datamodel-code-generator/compare/0.56.0...0.56.1</a></p>
   <hr />
   <h2><a 
href="https://github.com/koxudaxi/datamodel-code-generator/releases/tag/0.56.0";>0.56.0</a>
 - 2026-04-04</h2>
   <h2>Breaking Changes</h2>
   <h3>Code Generation Changes</h3>
   <ul>
   <li>Generated default field syntax changed - Fields with structured defaults 
(dicts, lists, model references) now use <code>Field(default_value, 
validate_default=True)</code> instead of <code>default_factory=lambda: 
TypeAdapter(...).validate_python(...)</code> or <code>default_factory=lambda: 
Model.model_validate(...)</code>. This produces simpler, more readable code but 
changes the generated output format. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3050";>#3050</a>)</li>
   <li>TypeAdapter import removed from generated code - Generated models no 
longer import <code>TypeAdapter</code> from pydantic since 
<code>validate_default=True</code> handles validation natively. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3050";>#3050</a>)</li>
   <li>Default value handling for model-referencing fields rewritten - Fields 
with defaults referencing Pydantic models (BaseModel, RootModel, type aliases) 
now generate <code>Field(&lt;raw_value&gt;, validate_default=True)</code> 
instead of <code>default_factory=lambda: Model.model_validate(...)</code>, 
<code>default_factory=lambda: TypeAdapter(...).validate_python(...)</code>, or 
<code>default_factory=lambda: Model(...)</code>. Empty collection defaults 
changed from 
<code>default_factory=list</code>/<code>default_factory=dict</code> to 
<code>Field([], validate_default=True)</code>/<code>Field({}, 
validate_default=True)</code>. The generated code is semantically equivalent 
under Pydantic v2 but textually different, which will break snapshot tests or 
tooling that matches exact output. <code>pydantic.TypeAdapter</code> is no 
longer imported in generated code. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3070";>#3070</a>)</li>
   <li>Default values for model-referencing fields now use 
<code>validate_default=True</code> instead of <code>default_factory</code> 
lambdas - Fields with structured defaults (dicts, lists, or scalars referencing 
Pydantic models/RootModels) previously generated <code>default_factory=lambda: 
ModelName.model_validate(value)</code> or <code>default_factory=lambda: 
ModelName(value)</code>. They now generate <code>Field(value, 
validate_default=True)</code>, producing simpler but different output. Empty 
collection defaults changed from 
<code>default_factory=list</code>/<code>default_factory=dict</code> to 
<code>Field([], validate_default=True)</code>/<code>Field({}, 
validate_default=True)</code>. Users who regenerate code will see different 
output. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3071";>#3071</a>)
   Before:
   <pre lang="python"><code>count: CountType | None = 
Field(default_factory=lambda: CountType(10))
   items: dict[str, Item] | None = Field(default_factory=dict, title='Items')
   </code></pre>
   After:
   <pre lang="python"><code>count: CountType | None = Field(10, 
validate_default=True)
   items: dict[str, Item] | None = Field({}, title='Items', 
validate_default=True)
   </code></pre>
   </li>
   <li>Default values for fields referencing models now use 
<code>validate_default=True</code> instead of 
<code>default_factory=lambda:</code> - Fields with structured defaults 
(dicts/lists) that reference Pydantic models previously generated 
<code>default_factory=lambda: Model.model_validate(...)</code> or 
<code>default_factory=lambda: TypeAdapter(Type).validate_python(...)</code> 
patterns. They now generate the raw default value directly with 
<code>validate_default=True</code> (e.g., <code>Field({'key': 'val'}, 
validate_default=True)</code> instead of <code>Field(default_factory=lambda: 
Model.model_validate({'key': 'val'}))</code>). This changes the generated code 
output and may affect users who depend on the exact generated code structure, 
pin generated output in tests, or use custom post-processing. The runtime 
behavior should be equivalent for Pydantic v2 users. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3072";>#3072</a>)</li>
   <li><code>TypeAdapter</code> import removed from generated code - Generated 
code no longer imports <code>pydantic.TypeAdapter</code> for default value 
handling. Code that previously used 
<code>TypeAdapter(...).validate_python(...)</code> in default factories now 
uses inline defaults with <code>validate_default=True</code>. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3072";>#3072</a>)</li>
   <li>Integer and boolean discriminator values now supported in generated 
Literal types - Discriminator fields previously only generated string literal 
values. They now support <code>int</code> and <code>bool</code> discriminator 
values (e.g., <code>Literal[1]</code> instead of <code>Literal['1']</code>), 
which changes generated code for schemas using integer discriminator mappings. 
(<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3072";>#3072</a>)</li>
   </ul>
   <h3>API/CLI Changes</h3>
   <ul>
   <li><code>ValidatedDefault</code> and <code>WrappedDefault</code> classes 
removed - These internal classes were exported from 
<code>datamodel_code_generator.model.base</code> and have been removed. Code 
importing these types will break:
   <pre lang="python"><code># Before (broken)
   from datamodel_code_generator.model.base import ValidatedDefault, 
WrappedDefault
   </code></pre>
   (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3050";>#3050</a>)</li>
   <li><code>SUPPORTS_WRAPPED_DEFAULT</code> and 
<code>SUPPORTS_VALIDATED_DEFAULT</code> class variables removed - These flags 
were removed from the <code>DataModel</code> base class. Custom model classes 
that override these variables will see attribute errors. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3050";>#3050</a>)</li>
   <li>Internal types <code>ValidatedDefault</code> and 
<code>WrappedDefault</code> removed - The 
<code>datamodel_code_generator.model._types</code> module was deleted and 
<code>ValidatedDefault</code>/<code>WrappedDefault</code> are no longer 
exported from <code>datamodel_code_generator.model.base</code>. Code that 
imports or subclasses these types will break. The 
<code>SUPPORTS_WRAPPED_DEFAULT</code> and 
<code>SUPPORTS_VALIDATED_DEFAULT</code> class variables were removed from 
<code>DataModel</code> and its subclasses; custom model classes referencing 
these attributes will need updating. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3070";>#3070</a>)</li>
   <li>Removed <code>WrappedDefault</code>, <code>ValidatedDefault</code> 
classes and <code>SUPPORTS_WRAPPED_DEFAULT</code>, 
<code>SUPPORTS_VALIDATED_DEFAULT</code> class variables - The 
<code>WrappedDefault</code> and <code>ValidatedDefault</code> classes from 
<code>datamodel_code_generator.model._types</code> (re-exported via 
<code>datamodel_code_generator.model.base</code>) have been deleted. The 
<code>DataModel</code> class variables <code>SUPPORTS_WRAPPED_DEFAULT</code> 
and <code>SUPPORTS_VALIDATED_DEFAULT</code> have also been removed. Code that 
imports or references these will break. (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3071";>#3071</a>)</li>
   </ul>
   <!-- raw HTML omitted -->
   </blockquote>
   <p>... (truncated)</p>
   </details>
   <details>
   <summary>Commits</summary>
   <ul>
   <li><a 
href="https://github.com/koxudaxi/datamodel-code-generator/commit/6274b70b58e6dab57a1797beb8006f9fcdbf7dbe";><code>6274b70</code></a>
 Docs: describe --keep-model-order as deterministic dependency-aware ordering 
...</li>
   <li><a 
href="https://github.com/koxudaxi/datamodel-code-generator/commit/3e87a9a4a712b2cb8ad6d9faaa85c86ac8838ffe";><code>3e87a9a</code></a>
 Fix root model reuse collapse (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3089";>#3089</a>)</li>
   <li><a 
href="https://github.com/koxudaxi/datamodel-code-generator/commit/51377952477da7ef39efcb2f3e256ae51ad7a1f8";><code>5137795</code></a>
 tomli was merged under the name tomllib into std library <em>3.11</em> (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3088";>#3088</a>)</li>
   <li><a 
href="https://github.com/koxudaxi/datamodel-code-generator/commit/d7a1f7166624eadcd84e97b8d2ca09e8c6dde957";><code>d7a1f71</code></a>
 Fix relative URL refs with path-only root ids (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3085";>#3085</a>)</li>
   <li><a 
href="https://github.com/koxudaxi/datamodel-code-generator/commit/f0960e9e2362f1dab2facb55853d2e56a3a923b4";><code>f0960e9</code></a>
 Prefer CLI input over pyproject url (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3083";>#3083</a>)</li>
   <li><a 
href="https://github.com/koxudaxi/datamodel-code-generator/commit/05901ff4ad110b750dcfd996aeaca410767240cd";><code>05901ff</code></a>
 Fix <code>--base-class-map</code> and <code>--enum-field-as-literal-map</code> 
long inline json sup...</li>
   <li><a 
href="https://github.com/koxudaxi/datamodel-code-generator/commit/5ba49a72dbfc69dc781a87c6adadb785d794f475";><code>5ba49a7</code></a>
 docs: update CHANGELOG.md for 0.56.0</li>
   <li><a 
href="https://github.com/koxudaxi/datamodel-code-generator/commit/52d9ef9dec52f3ad14130710eefb010f0e492160";><code>52d9ef9</code></a>
 [codex] Refresh project usage list (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3072";>#3072</a>)</li>
   <li><a 
href="https://github.com/koxudaxi/datamodel-code-generator/commit/7d41fef7884579d728fe42a1e266d8b950ccd72d";><code>7d41fef</code></a>
 Support JSON files for mapping options (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3071";>#3071</a>)</li>
   <li><a 
href="https://github.com/koxudaxi/datamodel-code-generator/commit/5a8cd0da7a6d17bfd70c5c2623699ffc6aa818fd";><code>5a8cd0d</code></a>
 Fix non-string OpenAPI discriminator literals (<a 
href="https://redirect.github.com/koxudaxi/datamodel-code-generator/issues/3070";>#3070</a>)</li>
   <li>Additional commits viewable in <a 
href="https://github.com/koxudaxi/datamodel-code-generator/compare/0.33.0...0.56.1";>compare
 view</a></li>
   </ul>
   </details>
   <br />
   
   
   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 <dependency name> major version` will close this group 
update PR and stop Dependabot creating any more for the specific dependency's 
major version (unless you unignore this specific dependency's major version or 
upgrade to it yourself)
   - `@dependabot ignore <dependency name> minor version` will close this group 
update PR and stop Dependabot creating any more for the specific dependency's 
minor version (unless you unignore this specific dependency's minor version or 
upgrade to it yourself)
   - `@dependabot ignore <dependency name>` will close this group update PR and 
stop Dependabot creating any more for the specific dependency (unless you 
unignore this specific dependency or upgrade to it yourself)
   - `@dependabot unignore <dependency name>` will remove all of the ignore 
conditions of the specified dependency
   - `@dependabot unignore <dependency name> <ignore condition>` will remove 
the ignore condition of the specified dependency and ignore conditions
   
   
   </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]

Reply via email to