[PR #1062] [CLOSED] build(deps): bump schemars from 0.8.22 to 1.0.0 #3932

Closed
opened 2026-05-22 23:57:14 +01:00 by JakeStanger · 0 comments
Owner

📋 Pull Request Information

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

Base: masterHead: dependabot/cargo/schemars-1.0.0


📝 Commits (1)

  • cd9f3c8 build(deps): bump schemars from 0.8.22 to 1.0.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 1.0.0.

Release notes

Sourced from schemars's releases.

v1.0.0

This is a major release with many additions, fixes and changes since 0.8 (but not many since 0.9). While the basic usage (deriving JsonSchema and using schema_for!() or SchemaGenerator) is mostly unchanged, you may wish to consult the migration guide which covers some of the most significant changes.

Changes since 1.0.0-rc.2:

Added

  • #[schemars(bound = ...)] attributes are now used from fields as well as containers
  • The Schema::pointer(...) method now works when given a JSON pointer in URI Fragment representation with a leading # character. In particular, this means that you can now lookup a schema from a $ref value using that method.

Fixed

  • Schema names that contain special characters are now correctly encoded when used inside a $ref value (GREsau/schemars#436)
  • Optimise type param usage in SchemaGenerator::subschema_for, reducing LLVM line count and improving compile times (GREsau/schemars#439)

v1.0.0-rc.2

Added

  • Serde attributes that you want schemars to ignore can now be "unset" by including them in a schemars attribute with a ! prefix, e.g. #[schemars(!from)] (GREsau/schemars#433 / GREsau/schemars#434)

Removed

  • ⚠️ Deprecated items have been removed:
    • SchemaSettings::option_nullable and SchemaSettings::option_add_null_type fields
    • gen module

v1.0.0-rc.1

Added

Changed

  • Use oneOf when generating schema for serialized mixed-type sequences (GREsau/schemars#348) - the previous behaviour was to always use true schema (i.e. any value) for mixed-type sequences

v1.0.0-alpha.22

Added

v1.0.0-alpha.21

Changed

  • Improve automatic trait bounds (GREsau/schemars#422 / GREsau/schemars#373)
    • Type params that are only used in skipped fields or PhantomData no longer have an unnecessary JsonSchema bound automatically added
    • Remove type params from default schema_name() whether or not they impl JsonSchema. Type params can still be included in the name by specifying them in a rename attribute.
  • Recursive references to the root schema type now use "$ref": "#" instead of duplicating the entire schema within $defs/definitions (GREsau/schemars#418 / GREsau/schemars#175)
  • Schemas for untagged enum variants no longer have the "title" set to the variant name (added in alpha.19) by default, but this behaviour is still available by setting the untagged_enum_variant_titles flag on SchemaSettings. (GREsau/schemars#421 / GREsau/schemars#420)

... (truncated)

Changelog

Sourced from schemars's changelog.

[1.0.0] - 2025-06-23

This is a major release with many additions, fixes and changes since 0.8 (but not many since 0.9). While the basic usage (deriving JsonSchema and using schema_for!() or SchemaGenerator) is mostly unchanged, you may wish to consult the migration guide which covers some of the most significant changes.

Changes since 1.0.0-rc.2:

Added

  • #[schemars(bound = ...)] attributes are now used from fields as well as containers
  • The Schema::pointer(...) method now works when given a JSON pointer in URI Fragment representation with a leading # character. In particular, this means that you can now lookup a schema from a $ref value using that method.

Fixed

  • Schema names that contain special characters are now correctly encoded when used inside a $ref value (GREsau/schemars#436)
  • Optimise type param usage in SchemaGenerator::subschema_for, reducing LLVM line count and improving compile times (GREsau/schemars#439)

[1.0.0-rc.2] - 2025-06-19

Added

  • Serde attributes that you want schemars to ignore can now be "unset" by including them in a schemars attribute with a ! prefix, e.g. #[schemars(!from)] (GREsau/schemars#433 / GREsau/schemars#434)

Removed

  • ⚠️ Deprecated items have been removed:
    • SchemaSettings::option_nullable and SchemaSettings::option_add_null_type fields
    • gen module

[1.0.0-rc.1] - 2025-06-16

Added

Changed

  • Use oneOf when generating schema for serialized mixed-type sequences (GREsau/schemars#348) - the previous behaviour was to always use true schema (i.e. any value) for mixed-type sequences

[1.0.0-alpha.22] - 2025-06-12

Added

[1.0.0-alpha.21] - 2025-06-09

Changed

... (truncated)

Commits
  • 1cc01f2 v1.0.0 🎉
  • ba9e3f3 Respect #[schemars(bound = ...)] attributes on fields as well as containers...
  • 1905e9a fix: (somewhat) avoid duplicate compilation of subschema_for
  • d8c0020 Minor refactor - expr_for_struct now uses expr_for_field
  • c07bda3 Handle URI fragment JSON pointers in schema.pointer(...) (#438)
  • 0b1c3c6 Add _unstable_ref_variants attribute (#437)
  • 7907883 Correctly encode names used in $ref values (#436)
  • 7bca0ed v1.0.0-rc.2
  • 24a65e9 Remove deprecated items (#435)
  • 6751239 Remove unneeded Debug derive
  • 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/1062 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 6/23/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `dependabot/cargo/schemars-1.0.0` --- ### 📝 Commits (1) - [`cd9f3c8`](https://github.com/JakeStanger/ironbar/commit/cd9f3c8689c8c8c7cb1c4e977c9db8cb870f0cf8) build(deps): bump schemars from 0.8.22 to 1.0.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 1.0.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>v1.0.0</h2> <p>This is a major release with many additions, fixes and changes since 0.8 (but not many since 0.9). While the basic usage (deriving <code>JsonSchema</code> and using <code>schema_for!()</code> or <code>SchemaGenerator</code>) is mostly unchanged, you may wish to consult the <a href="https://graham.cool/schemars/migrating/">migration guide</a> which covers some of the most significant changes.</p> <p>Changes since 1.0.0-rc.2:</p> <h3>Added</h3> <ul> <li><code>#[schemars(bound = ...)]</code> attributes are now used from fields as well as containers</li> <li>The <a href="https://docs.rs/schemars/1.0.0/schemars/struct.Schema.html#method.pointer"><code>Schema::pointer(...)</code></a> method now works when given a JSON pointer in URI Fragment representation with a leading <code>#</code> character. In particular, this means that you can now lookup a schema from a <code>$ref</code> value using that method.</li> </ul> <h3>Fixed</h3> <ul> <li>Schema names that contain special characters are now correctly encoded when used inside a <code>$ref</code> value (<a href="https://redirect.github.com/GREsau/schemars/pull/436">GREsau/schemars#436</a>)</li> <li>Optimise type param usage in <code>SchemaGenerator::subschema_for</code>, reducing LLVM line count and improving compile times (<a href="https://redirect.github.com/GREsau/schemars/pull/439">GREsau/schemars#439</a>)</li> </ul> <h2>v1.0.0-rc.2</h2> <h3>Added</h3> <ul> <li>Serde attributes that you want schemars to ignore can now be &quot;unset&quot; by including them in a schemars attribute with a ! prefix, e.g. <code>#[schemars(!from)]</code> (<a href="https://redirect.github.com/GREsau/schemars/issues/433">GREsau/schemars#433</a> / <a href="https://redirect.github.com/GREsau/schemars/pull/434">GREsau/schemars#434</a>)</li> </ul> <h3>Removed</h3> <ul> <li>⚠️ Deprecated items have been removed: <ul> <li><code>SchemaSettings::option_nullable</code> and <code>SchemaSettings::option_add_null_type</code> fields</li> <li><code>gen</code> module</li> </ul> </li> </ul> <h2>v1.0.0-rc.1</h2> <h3>Added</h3> <ul> <li>Impl <code>JsonSchema</code> for <code>chrono::TimeDelta</code> (<a href="https://redirect.github.com/GREsau/schemars/issues/357">GREsau/schemars#357</a>)</li> <li>Support <code>with</code>/<code>into</code>/<code>from</code>/<code>try_from</code> container attributes (<a href="https://redirect.github.com/GREsau/schemars/issues/210">GREsau/schemars#210</a> / <a href="https://redirect.github.com/GREsau/schemars/issues/267">GREsau/schemars#267</a>)</li> </ul> <h3>Changed</h3> <ul> <li>Use <code>oneOf</code> when generating schema for serialized mixed-type sequences (<a href="https://redirect.github.com/GREsau/schemars/issues/348">GREsau/schemars#348</a>) - the previous behaviour was to always use <code>true</code> schema (i.e. any value) for mixed-type sequences</li> </ul> <h2>v1.0.0-alpha.22</h2> <h3>Added</h3> <ul> <li>Type and const generic params can now be used in <code>schema_with</code> attributes, e.g. <code>#[schemars(schema_with = &quot;func::&lt;T&gt;&quot;)]</code> (<a href="https://redirect.github.com/GREsau/schemars/pull/426">GREsau/schemars#426</a> / <a href="https://redirect.github.com/GREsau/schemars/issues/375">GREsau/schemars#375</a>)</li> </ul> <h2>v1.0.0-alpha.21</h2> <h3>Changed</h3> <ul> <li>Improve automatic trait bounds (<a href="https://redirect.github.com/GREsau/schemars/pull/422">GREsau/schemars#422</a> / <a href="https://redirect.github.com/GREsau/schemars/issues/373">GREsau/schemars#373</a>) <ul> <li>Type params that are only used in skipped fields or <code>PhantomData</code> no longer have an unnecessary <code>JsonSchema</code> bound automatically added</li> <li>Remove type params from default <code>schema_name()</code> whether or not they impl <code>JsonSchema</code>. Type params can still be included in the name by specifying them in a rename attribute.</li> </ul> </li> <li>Recursive references to the root schema type now use <code>&quot;$ref&quot;: &quot;#&quot;</code> instead of duplicating the entire schema within <code>$defs</code>/<code>definitions</code> (<a href="https://redirect.github.com/GREsau/schemars/pull/418">GREsau/schemars#418</a> / <a href="https://redirect.github.com/GREsau/schemars/issues/175">GREsau/schemars#175</a>)</li> <li>Schemas for untagged enum variants no longer have the <code>&quot;title&quot;</code> set to the variant name (added in <a href="https://github.com/GREsau/schemars/releases/tag/v1.0.0-alpha.19">alpha.19</a>) by default, but this behaviour is still available by setting the <code>untagged_enum_variant_titles</code> flag on <code>SchemaSettings</code>. (<a href="https://redirect.github.com/GREsau/schemars/pull/421">GREsau/schemars#421</a> / <a href="https://redirect.github.com/GREsau/schemars/issues/420">GREsau/schemars#420</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </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>[1.0.0] - 2025-06-23</h2> <p>This is a major release with many additions, fixes and changes since 0.8 (but not many since 0.9). While the basic usage (deriving <code>JsonSchema</code> and using <code>schema_for!()</code> or <code>SchemaGenerator</code>) is mostly unchanged, you may wish to consult the <a href="https://graham.cool/schemars/migrating/">migration guide</a> which covers some of the most significant changes.</p> <p>Changes since 1.0.0-rc.2:</p> <h3>Added</h3> <ul> <li><code>#[schemars(bound = ...)]</code> attributes are now used from fields as well as containers</li> <li>The <a href="https://docs.rs/schemars/1.0.0/schemars/struct.Schema.html#method.pointer"><code>Schema::pointer(...)</code></a> method now works when given a JSON pointer in URI Fragment representation with a leading <code>#</code> character. In particular, this means that you can now lookup a schema from a <code>$ref</code> value using that method.</li> </ul> <h3>Fixed</h3> <ul> <li>Schema names that contain special characters are now correctly encoded when used inside a <code>$ref</code> value (<a href="https://redirect.github.com/GREsau/schemars/pull/436">GREsau/schemars#436</a>)</li> <li>Optimise type param usage in <code>SchemaGenerator::subschema_for</code>, reducing LLVM line count and improving compile times (<a href="https://redirect.github.com/GREsau/schemars/pull/439">GREsau/schemars#439</a>)</li> </ul> <h2>[1.0.0-rc.2] - 2025-06-19</h2> <h3>Added</h3> <ul> <li>Serde attributes that you want schemars to ignore can now be &quot;unset&quot; by including them in a schemars attribute with a ! prefix, e.g. <code>#[schemars(!from)]</code> (<a href="https://redirect.github.com/GREsau/schemars/issues/433">GREsau/schemars#433</a> / <a href="https://redirect.github.com/GREsau/schemars/pull/434">GREsau/schemars#434</a>)</li> </ul> <h3>Removed</h3> <ul> <li>⚠️ Deprecated items have been removed: <ul> <li><code>SchemaSettings::option_nullable</code> and <code>SchemaSettings::option_add_null_type</code> fields</li> <li><code>gen</code> module</li> </ul> </li> </ul> <h2>[1.0.0-rc.1] - 2025-06-16</h2> <h3>Added</h3> <ul> <li>Impl <code>JsonSchema</code> for <code>chrono::TimeDelta</code> (<a href="https://redirect.github.com/GREsau/schemars/issues/357">GREsau/schemars#357</a>)</li> <li>Support <code>with</code>/<code>into</code>/<code>from</code>/<code>try_from</code> container attributes (<a href="https://redirect.github.com/GREsau/schemars/issues/210">GREsau/schemars#210</a> / <a href="https://redirect.github.com/GREsau/schemars/issues/267">GREsau/schemars#267</a>)</li> </ul> <h3>Changed</h3> <ul> <li>Use <code>oneOf</code> when generating schema for serialized mixed-type sequences (<a href="https://redirect.github.com/GREsau/schemars/issues/348">GREsau/schemars#348</a>) - the previous behaviour was to always use <code>true</code> schema (i.e. any value) for mixed-type sequences</li> </ul> <h2>[1.0.0-alpha.22] - 2025-06-12</h2> <h3>Added</h3> <ul> <li>Type and const generic params can now be used in <code>schema_with</code> attributes, e.g. <code>#[schemars(schema_with = &quot;func::&lt;T&gt;&quot;)]</code> (<a href="https://redirect.github.com/GREsau/schemars/pull/426">GREsau/schemars#426</a> / <a href="https://redirect.github.com/GREsau/schemars/issues/375">GREsau/schemars#375</a>)</li> </ul> <h2>[1.0.0-alpha.21] - 2025-06-09</h2> <h3>Changed</h3> <ul> <li>Improve automatic trait bounds (<a href="https://redirect.github.com/GREsau/schemars/pull/422">GREsau/schemars#422</a> / <a href="https://redirect.github.com/GREsau/schemars/issues/373">GREsau/schemars#373</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/GREsau/schemars/commit/1cc01f22235fbb97cc22ef22ad3b075812e90ef3"><code>1cc01f2</code></a> v1.0.0 🎉</li> <li><a href="https://github.com/GREsau/schemars/commit/ba9e3f33d7841d093fbcb790157be6053dee2570"><code>ba9e3f3</code></a> Respect <code>#[schemars(bound = ...)]</code> attributes on fields as well as containers...</li> <li><a href="https://github.com/GREsau/schemars/commit/1905e9a5a70ccee910055835147c129a9ec8c8c5"><code>1905e9a</code></a> fix: (somewhat) avoid duplicate compilation of subschema_for</li> <li><a href="https://github.com/GREsau/schemars/commit/d8c0020418a8cc5fbc4c0fb82621e4fc56ce2794"><code>d8c0020</code></a> Minor refactor - <code>expr_for_struct</code> now uses <code>expr_for_field</code></li> <li><a href="https://github.com/GREsau/schemars/commit/c07bda334c97bc81071870eb6b0d1f086daa3ac8"><code>c07bda3</code></a> Handle URI fragment JSON pointers in <code>schema.pointer(...)</code> (<a href="https://redirect.github.com/GREsau/schemars/issues/438">#438</a>)</li> <li><a href="https://github.com/GREsau/schemars/commit/0b1c3c6f625b88f7cfdafda87083cd06713eff85"><code>0b1c3c6</code></a> Add <code>_unstable_ref_variants</code> attribute (<a href="https://redirect.github.com/GREsau/schemars/issues/437">#437</a>)</li> <li><a href="https://github.com/GREsau/schemars/commit/7907883ae8d8e7111a835bbbe6bca964a960b7d6"><code>7907883</code></a> Correctly encode names used in <code>$ref</code> values (<a href="https://redirect.github.com/GREsau/schemars/issues/436">#436</a>)</li> <li><a href="https://github.com/GREsau/schemars/commit/7bca0ed57030e0a05c47293f094dd1984d50f098"><code>7bca0ed</code></a> v1.0.0-rc.2</li> <li><a href="https://github.com/GREsau/schemars/commit/24a65e9e32ff1a7b0fd22bb72599c4b6c66e8a7f"><code>24a65e9</code></a> Remove deprecated items (<a href="https://redirect.github.com/GREsau/schemars/issues/435">#435</a>)</li> <li><a href="https://github.com/GREsau/schemars/commit/675123955dace0f9db05dc9a055ced5301ffda4c"><code>6751239</code></a> Remove unneeded <code>Debug</code> derive</li> <li>Additional commits viewable in <a href="https://github.com/GREsau/schemars/compare/v0.8.22...v1.0.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=1.0.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 23:57:14 +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#3932
No description provided.