[PR #1025] [CLOSED] build(deps): bump schemars from 0.8.22 to 0.9.0 #1099

Closed
opened 2026-05-22 21:55:34 +01:00 by JakeStanger · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/JakeStanger/ironbar/pull/1025
Author: @dependabot[bot]
Created: 6/2/2025
Status: Closed

Base: masterHead: dependabot/cargo/schemars-0.9.0


📝 Commits (1)

  • c3e791a build(deps): bump schemars from 0.8.22 to 0.9.0

📊 Changes

2 files changed (+26 additions, -5 deletions)

View changed files

📝 Cargo.lock (+25 -4)
📝 Cargo.toml (+1 -1)

📄 Description

Bumps schemars from 0.8.22 to 0.9.0.

Release notes

Sourced from schemars's releases.

v0.9.0

This version is identical to 1.0.0-alpha.18, but is available for those who are unable to unwilling to use a pre-release version.

Those upgrading from Schemars 0.8 may want to consult the migration guide, which also applies when migrating from 0.8 to 0.9.

Changelog

Sourced from schemars's changelog.

[0.9.0] - 2025-05-26

This version is identical to 1.0.0-alpha.18, but is available for those who are unable to unwilling to use a pre-release version.

Those upgrading from Schemars 0.8 may want to consult the migration guide, which also applies when migrating from 0.8 to 0.9.

[1.0.0-alpha.18] - 2025-05-26

Added

  • #[schemars(inline)] attribute for inling schemas when deriving JsonSchema (GREsau/schemars#380)
  • Implement JsonSchema for jiff 0.2 types, under the optional jiff02 feature flag (GREsau/schemars#364)
  • Add methods to dyn GenTransform, allowing to to be used similarly to a dyn Any:
    • fn is<T>(&self) -> bool
    • fn downcast_ref<T>(&self) -> Option<&T>
    • fn downcast_mut<T>(&mut self) -> Option<&mut T>
    • fn downcast<T>(self: Box<Self>) -> Result<Box<T>, Box<Self>>
  • Schemas for i8/i16/u8/u16 now include minimum and maximum properties (GREsau/schemars#298)
  • schemars::transform::RestrictFormats - a Transform that removes any format values that are not defined by the JSON Schema standard (or explicitly allowed by a custom list). This can be used to remove non-standard formats from schemas.
  • SchemaSettings now has an include_type_name flag. When enabled, this includes an "x-rust-type" property on generated schemas, set to the name of the schema's associated rust type.

Changed

  • Rename JsonSchema::always_inline_schema() to inline_schema(), because future attributes may allow particular fields to be uninlined
  • MSRV is now 1.74
  • GenTransform::as_any and GenTransform::as_any are deprecated and will be removed before schemars 1.0 becomes stable.
  • The generation of nullable schemas (i.e. schemas for Option<T>) has been reworked, making them more accurate. The SchemaSettings::option_nullable and SchemaSettings::option_add_null_type fields are no longer used - instead, generated schemas always include the "null" type, but this can be changed to nullable by using the new AddNullable transform.
  • Update OpenAPI 3.0 meta-schema to an active URL (GREsau/schemars#394)
  • Change SchemaSettings::meta_schema and SchemaSettings::definitions_path from String to Cow<'static, str>, making it easier to construct a SchemaSettings in a const context.
  • The SchemaGenerator::take_definitions method now takes an apply_transforms flag, which when enabled, will apply the generator's current transforms to each of the schema values in the returned map.
Commits
  • 643a4c0 v0.9.0 (identical to v1.0.0-alpha.18)
  • f9bcfd8 v1.0.0-alpha.18
  • c805be1 Add include_type_name setting for setting x-rust-type schema property (#406)
  • b24c841 Add RestrictFormats transform (#405)
  • 04db03b Re-enable some clippy lints
  • 413e4a0 Add flag to take_definitions to optionally apply transforms (#404)
  • 9d58bdc Change String settings to Cow\<'static, str> (#403)
  • b4c7f5e Update OpenAPI 3.0 meta-schema
  • fb54a6d Deprecate as_any/as_any_mut, add downcast methods to dyn GenTransform (...
  • 6a089fa Set minimum/maximum for i8/u8/i16/u16 (#401)
  • Additional commits viewable in compare view

Dependabot compatibility score

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 commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/JakeStanger/ironbar/pull/1025 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 6/2/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `dependabot/cargo/schemars-0.9.0` --- ### 📝 Commits (1) - [`c3e791a`](https://github.com/JakeStanger/ironbar/commit/c3e791afa7276e9f66ed4a6d0eec2e60e4cb53f8) build(deps): bump schemars from 0.8.22 to 0.9.0 ### 📊 Changes **2 files changed** (+26 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+25 -4) 📝 `Cargo.toml` (+1 -1) </details> ### 📄 Description Bumps [schemars](https://github.com/GREsau/schemars) from 0.8.22 to 0.9.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/GREsau/schemars/releases">schemars's releases</a>.</em></p> <blockquote> <h2>v0.9.0</h2> <p>This version is identical to <a href="https://github.com/GREsau/schemars/releases/tag/v1.0.0-alpha.18">1.0.0-alpha.18</a>, but is available for those who are unable to unwilling to use a pre-release version.</p> <p>Those upgrading from Schemars 0.8 may want to consult <a href="https://graham.cool/schemars/migrating/">the migration guide</a>, which also applies when migrating from 0.8 to 0.9.</p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/GREsau/schemars/blob/master/CHANGELOG.md">schemars's changelog</a>.</em></p> <blockquote> <h2>[0.9.0] - 2025-05-26</h2> <p>This version is identical to <code>1.0.0-alpha.18</code>, but is available for those who are unable to unwilling to use a pre-release version.</p> <p>Those upgrading from Schemars 0.8 may want to consult <a href="https://graham.cool/schemars/migrating/">the migration guide</a>, which also applies when migrating from 0.8 to 0.9.</p> <h2>[1.0.0-alpha.18] - 2025-05-26</h2> <h3>Added</h3> <ul> <li><code>#[schemars(inline)]</code> attribute for inling schemas when deriving <code>JsonSchema</code> (<a href="https://redirect.github.com/GREsau/schemars/pull/380">GREsau/schemars#380</a>)</li> <li>Implement <code>JsonSchema</code> for <a href="https://crates.io/crates/jiff">jiff</a> 0.2 types, under the optional <code>jiff02</code> feature flag (<a href="https://redirect.github.com/GREsau/schemars/pull/364">GREsau/schemars#364</a>)</li> <li>Add methods to <code>dyn GenTransform</code>, allowing to to be used similarly to a <code>dyn Any</code>: <ul> <li><code>fn is&lt;T&gt;(&amp;self) -&gt; bool</code></li> <li><code>fn downcast_ref&lt;T&gt;(&amp;self) -&gt; Option&lt;&amp;T&gt;</code></li> <li><code>fn downcast_mut&lt;T&gt;(&amp;mut self) -&gt; Option&lt;&amp;mut T&gt;</code></li> <li><code>fn downcast&lt;T&gt;(self: Box&lt;Self&gt;) -&gt; Result&lt;Box&lt;T&gt;, Box&lt;Self&gt;&gt;</code></li> </ul> </li> <li>Schemas for <code>i8</code>/<code>i16</code>/<code>u8</code>/<code>u16</code> now include <code>minimum</code> and <code>maximum</code> properties (<a href="https://redirect.github.com/GREsau/schemars/issues/298">GREsau/schemars#298</a>)</li> <li><code>schemars::transform::RestrictFormats</code> - a <code>Transform</code> that removes any <code>format</code> values that are not defined by the JSON Schema standard (or explicitly allowed by a custom list). This can be used to remove non-standard <code>format</code>s from schemas.</li> <li><code>SchemaSettings</code> now has an <code>include_type_name</code> flag. When enabled, this includes an <code>&quot;x-rust-type&quot;</code> property on generated schemas, set to the name of the schema's associated rust type.</li> </ul> <h3>Changed</h3> <ul> <li>Rename <code>JsonSchema::always_inline_schema()</code> to <code>inline_schema()</code>, because future attributes may allow particular fields to be uninlined</li> <li>MSRV is now 1.74</li> <li><code>GenTransform::as_any</code> and <code>GenTransform::as_any</code> are deprecated and will be removed before schemars 1.0 becomes stable.</li> <li>The generation of nullable schemas (i.e. schemas for <code>Option&lt;T&gt;</code>) has been reworked, making them more accurate. The <code>SchemaSettings::option_nullable</code> and <code>SchemaSettings::option_add_null_type</code> fields are no longer used - instead, generated schemas always include the <code>&quot;null&quot;</code> type, but this can be changed to <code>nullable</code> by using the new <code>AddNullable</code> transform.</li> <li>Update OpenAPI 3.0 meta-schema to an active URL (<a href="https://redirect.github.com/GREsau/schemars/issues/394">GREsau/schemars#394</a>)</li> <li>Change <code>SchemaSettings::meta_schema</code> and <code>SchemaSettings::definitions_path</code> from <code>String</code> to <code>Cow&lt;'static, str&gt;</code>, making it easier to construct a <code>SchemaSettings</code> in a <code>const</code> context.</li> <li>The <code>SchemaGenerator::take_definitions</code> method now takes an <code>apply_transforms</code> flag, which when enabled, will apply the generator's current transforms to each of the schema values in the returned map.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/GREsau/schemars/commit/643a4c0248ebd607f8a80a5a06db3e905fcdc0cb"><code>643a4c0</code></a> v0.9.0 (identical to v1.0.0-alpha.18)</li> <li><a href="https://github.com/GREsau/schemars/commit/f9bcfd8b3f0bbe5debfd9e21304e48c14ccbf2ca"><code>f9bcfd8</code></a> v1.0.0-alpha.18</li> <li><a href="https://github.com/GREsau/schemars/commit/c805be162dcd7f2a9b1afa2e55efddfb3157d3cb"><code>c805be1</code></a> Add <code>include_type_name</code> setting for setting <code>x-rust-type</code> schema property (<a href="https://redirect.github.com/GREsau/schemars/issues/406">#406</a>)</li> <li><a href="https://github.com/GREsau/schemars/commit/b24c8417283e60985ee766c0fd6e58aaa2c30e46"><code>b24c841</code></a> Add <code>RestrictFormats</code> transform (<a href="https://redirect.github.com/GREsau/schemars/issues/405">#405</a>)</li> <li><a href="https://github.com/GREsau/schemars/commit/04db03b15f0eb3cc0dfa3baee3168cf2f63189c1"><code>04db03b</code></a> Re-enable some clippy lints</li> <li><a href="https://github.com/GREsau/schemars/commit/413e4a0c019f71e02b790e922951b4bed64a6fa6"><code>413e4a0</code></a> Add flag to <code>take_definitions</code> to optionally apply transforms (<a href="https://redirect.github.com/GREsau/schemars/issues/404">#404</a>)</li> <li><a href="https://github.com/GREsau/schemars/commit/9d58bdcd7a002f9ea42f403831b3e83082926ad8"><code>9d58bdc</code></a> Change <code>String</code> settings to <code>Cow\&lt;'static, str&gt;</code> (<a href="https://redirect.github.com/GREsau/schemars/issues/403">#403</a>)</li> <li><a href="https://github.com/GREsau/schemars/commit/b4c7f5e6437c6cb5c125b3c62a1144dbce30b58c"><code>b4c7f5e</code></a> Update OpenAPI 3.0 meta-schema</li> <li><a href="https://github.com/GREsau/schemars/commit/fb54a6d17fe7dcb52164f4044f36e900ad771d38"><code>fb54a6d</code></a> Deprecate <code>as_any</code>/<code>as_any_mut</code>, add downcast methods to <code>dyn GenTransform</code> (...</li> <li><a href="https://github.com/GREsau/schemars/commit/6a089fa95ba7bc882d10901a099a046e1f4e8967"><code>6a089fa</code></a> Set <code>minimum</code>/<code>maximum</code> for i8/u8/i16/u16 (<a href="https://redirect.github.com/GREsau/schemars/issues/401">#401</a>)</li> <li>Additional commits viewable in <a href="https://github.com/GREsau/schemars/compare/v0.8.22...v0.9.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=schemars&package-manager=cargo&previous-version=0.8.22&new-version=0.9.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
JakeStanger 2026-05-22 21:55:34 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/ironbar#1099
No description provided.