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

   Updates the requirements on 
[aiosqlite](https://github.com/omnilib/aiosqlite), 
[starlette](https://github.com/Kludex/starlette) 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 `starlette` to 1.0.0
   <details>
   <summary>Release notes</summary>
   <p><em>Sourced from <a 
href="https://github.com/Kludex/starlette/releases";>starlette's 
releases</a>.</em></p>
   <blockquote>
   <h2>Version 1.0.0</h2>
   <p>Starlette 1.0 is here! 🎉</p>
   <p>After nearly eight years since its creation, Starlette has reached its 
first stable release.</p>
   <p>A special thank you to <a 
href="https://github.com/lovelydinosaur";><code>@​lovelydinosaur</code></a>, the 
creator of Starlette, Uvicorn, HTTPX and MkDocs, whose work helped to lay the 
foundation for the modern async Python ecosystem. 🙏</p>
   <p>Thank you to <a 
href="https://github.com/adriangb";><code>@​adriangb</code></a>, <a 
href="https://github.com/graingert";><code>@​graingert</code></a>, <a 
href="https://github.com/agronholm";><code>@​agronholm</code></a>, <a 
href="https://github.com/florimondmanca";><code>@​florimondmanca</code></a>, <a 
href="https://github.com/aminalaee";><code>@​aminalaee</code></a>, <a 
href="https://github.com/tiangolo";><code>@​tiangolo</code></a>, <a 
href="https://github.com/alex-oleshkevich";><code>@​alex-oleshkevich</code></a>, 
<a href="https://github.com/abersheeran";><code>@​abersheeran</code></a>, and <a 
href="https://github.com/uSpike";><code>@​uSpike</code></a> for helping make 
Starlette what it is today. And to all my sponsors - especially <a 
href="https://github.com/tiangolo";><code>@​tiangolo</code></a>, <a 
href="https://github.com/huggingface";><code>@​huggingface</code></a>, and <a 
href="https://github.com/elevenlabs";><code>@​elevenlabs</code></a> - thank you 
for yo
 ur support!</p>
   <p>Thank you to all <a 
href="https://github.com/encode/starlette/graphs/contributors";>290+ 
contributors</a> who have shaped Starlette over the years! ❤️</p>
   <p>Read more on the <a 
href="https://marcelotryle.com/blog/2026/03/22/starlette-10-is-here/";>blog 
post</a>.</p>
   <p>Check out the full release notes at <a 
href="https://www.starlette.io/release-notes/#100-march-22-2026";>https://www.starlette.io/release-notes/#100-march-22-2026</a></p>
   <hr />
   <p><strong>Full Changelog</strong>: <a 
href="https://github.com/encode/starlette/compare/1.0.0rc1...1.0.0";>https://github.com/encode/starlette/compare/1.0.0rc1...1.0.0</a></p>
   </blockquote>
   </details>
   <details>
   <summary>Changelog</summary>
   <p><em>Sourced from <a 
href="https://github.com/Kludex/starlette/blob/main/docs/release-notes.md";>starlette's
 changelog</a>.</em></p>
   <blockquote>
   <h2>1.0.0 (March 22, 2026)</h2>
   <p>Starlette 1.0 is here!</p>
   <p>After nearly eight years since its creation, Starlette has reached its 
first stable release.
   Thank you to everyone who tested the release candidate and reported 
issues.</p>
   <p>You can read more on the <a 
href="https://marcelotryle.com/blog/2026/03/22/starlette-10-is-here/";>blog 
post</a>.</p>
   <h4>Added</h4>
   <ul>
   <li>Track session access and modification in <code>SessionMiddleware</code> 
<a href="https://redirect.github.com/encode/starlette/pull/3166";>#3166</a>.</li>
   </ul>
   <h4>Fixed</h4>
   <ul>
   <li>Handle websocket denial responses in <code>StreamingResponse</code> and 
<code>FileResponse</code> <a 
href="https://redirect.github.com/encode/starlette/pull/3189";>#3189</a>.</li>
   <li>Use <code>bytearray</code> for field accumulation in 
<code>FormParser</code> <a 
href="https://redirect.github.com/encode/starlette/pull/3179";>#3179</a>.</li>
   <li>Move <code>parser.finalize()</code> inside try/except in 
<code>MultiPartParser.parse()</code> <a 
href="https://redirect.github.com/encode/starlette/pull/3153";>#3153</a>.</li>
   </ul>
   <h2>1.0.0rc1 (February 23, 2026)</h2>
   <p>We're ready! I'm thrilled to announce the first release candidate for 
Starlette 1.0.</p>
   <p>Starlette was created in June 2018 by Tom Christie, and has been on 
ZeroVer for years. Today, it's downloaded
   almost <a href="https://pypistats.org/packages/starlette";>10 million times a 
day</a>, serves as the foundation for FastAPI,
   and has inspired many other frameworks. In the age of AI, Starlette 
continues to play an important role as a
   dependency of the Python MCP SDK.</p>
   <p>This release focuses on removing deprecated features that were marked for 
removal in 1.0.0, along with some
   last minute bug fixes. It's a release candidate, so we can gather feedback 
from the community before the final
   1.0.0 release soon.</p>
   <p>A huge thank you to all the contributors who have helped make Starlette 
what it is today.
   In particular, I'd like to recognize:</p>
   <ul>
   <li><a href="https://github.com/lovelydinosaur";>Kim Christie</a> - The 
original creator of Starlette, Uvicorn, and MkDocs, and the
   current maintainer of HTTPX. Kim's work helped lay the foundation for the 
modern async Python ecosystem.</li>
   <li><a href="https://github.com/adriangb";>Adrian Garcia Badaracco</a> - One 
of the smartest people I know, whom I have the pleasure of working with at 
Pydantic.</li>
   <li><a href="https://github.com/graingert";>Thomas Grainger</a> - My async 
teacher, always ready to help with questions.</li>
   <li><a href="https://github.com/agronholm";>Alex Grönholm</a> - Another async 
mentor, always prompt to help with questions.</li>
   <li><a href="https://github.com/florimondmanca";>Florimond Manca</a> - Always 
present in the early days of both Starlette and Uvicorn, and helped a lot in 
the ecosystem.</li>
   <li><a href="https://github.com/aminalaee";>Amin Alaee</a> - Contributed a 
lot with file-related PRs.</li>
   <li><a href="https://github.com/tiangolo";>Sebastián Ramírez</a> - Maintains 
FastAPI upstream, and always in contact to help with upstream issues.</li>
   <li><a href="https://github.com/alex-oleshkevich";>Alex Oleshkevich</a> - 
Helped a lot on templates and many discussions.</li>
   <li><a href="https://github.com/abersheeran";>abersheeran</a> - My go-to 
person when I need help on many subjects.</li>
   </ul>
   <p>I'd also like to thank my sponsors for their support. A special thanks to
   <a href="https://github.com/tiangolo";><code>@​tiangolo</code></a>, <a 
href="https://github.com/huggingface";><code>@​huggingface</code></a>,
   and <a href="https://github.com/elevenlabs";><code>@​elevenlabs</code></a> 
for their generous sponsorship, and to all my other sponsors:</p>
   <!-- raw HTML omitted -->
   </blockquote>
   <p>... (truncated)</p>
   </details>
   <details>
   <summary>Commits</summary>
   <ul>
   <li><a 
href="https://github.com/Kludex/starlette/commit/0e88e92b592bfa11fd92e331869a8d49ba34b541";><code>0e88e92</code></a>
 Version 1.0.0 (<a 
href="https://redirect.github.com/Kludex/starlette/issues/3178";>#3178</a>)</li>
   <li><a 
href="https://github.com/Kludex/starlette/commit/9ee951980bae776103715b66305f807d9e8245da";><code>9ee9519</code></a>
 Handle websocket denial responses in streaming and file responses (<a 
href="https://redirect.github.com/Kludex/starlette/issues/3189";>#3189</a>)</li>
   <li><a 
href="https://github.com/Kludex/starlette/commit/a0bcc26612c9c344737cd59fb4ef847326adf37a";><code>a0bcc26</code></a>
 chore(deps-dev): bump black from 26.1.0 to 26.3.1 (<a 
href="https://redirect.github.com/Kludex/starlette/issues/3183";>#3183</a>)</li>
   <li><a 
href="https://github.com/Kludex/starlette/commit/79b3f26a9a38791af14d15c058c0e8c54cd9b11e";><code>79b3f26</code></a>
 chore(deps-dev): bump the python-packages group with 7 updates (<a 
href="https://redirect.github.com/Kludex/starlette/issues/3168";>#3168</a>)</li>
   <li><a 
href="https://github.com/Kludex/starlette/commit/789b9269fd3f3d6ab28781624f151e44432463cd";><code>789b926</code></a>
 Use <code>bytearray</code> for field accumulation in <code>FormParser</code> 
(<a 
href="https://redirect.github.com/Kludex/starlette/issues/3179";>#3179</a>)</li>
   <li><a 
href="https://github.com/Kludex/starlette/commit/a1fd9d822dc49857e9f39ea5b0970aeed6c8f669";><code>a1fd9d8</code></a>
 docs: fix typo in routing.md (<a 
href="https://redirect.github.com/Kludex/starlette/issues/3176";>#3176</a>)</li>
   <li><a 
href="https://github.com/Kludex/starlette/commit/c14d0f778010940ac40f97dbc23d8dbf99e87e23";><code>c14d0f7</code></a>
 Document session cookie security flags (<a 
href="https://redirect.github.com/Kludex/starlette/issues/3169";>#3169</a>)</li>
   <li><a 
href="https://github.com/Kludex/starlette/commit/c2e28786d1e73da045fa84e622f65c314a7171c1";><code>c2e2878</code></a>
 Move parser.finalize() inside try/except in MultiPartParser.parse() (<a 
href="https://redirect.github.com/Kludex/starlette/issues/3153";>#3153</a>)</li>
   <li><a 
href="https://github.com/Kludex/starlette/commit/89630a8658ab8aac7cca8a0d6ec4b78dcc2fcb46";><code>89630a8</code></a>
 chore(deps): bump the github-actions group with 3 updates (<a 
href="https://redirect.github.com/Kludex/starlette/issues/3167";>#3167</a>)</li>
   <li><a 
href="https://github.com/Kludex/starlette/commit/4647e532bbed7a5f60c9972ddba3f5fb4a79e1f9";><code>4647e53</code></a>
 Track session access and modification in <code>SessionMiddleware</code> (<a 
href="https://redirect.github.com/Kludex/starlette/issues/3166";>#3166</a>)</li>
   <li>Additional commits viewable in <a 
href="https://github.com/Kludex/starlette/compare/0.45.0...1.0.0";>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