Skip to content

Commit c627fef

Browse files
Bump schemars from 0.8.21 to 0.8.22 (#1544)
Bumps [schemars](https://github.com/GREsau/schemars) from 0.8.21 to 0.8.22. <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.8.22</h2> <h3>Fixed:</h3> <ul> <li>Fix compatibility with rust 2024 edition (<a href="https://redirect.github.com/GREsau/schemars/pull/378">GREsau/schemars#378</a>)</li> </ul> </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.8.22] - 2025-02-25</h2> <h3>Fixed:</h3> <ul> <li>Fix compatibility with rust 2024 edition (<a href="https://redirect.github.com/GREsau/schemars/pull/378">GREsau/schemars#378</a>)</li> </ul> <h2>[1.0.0-alpha.17] - 2024-12-02</h2> <h3>Changed</h3> <ul> <li>For newtype variants of internally-tagged enums, prefer referencing the inner type's schema via <code>$ref</code> instead of always inlining the schema (<a href="https://redirect.github.com/GREsau/schemars/pull/355">GREsau/schemars#355</a>) <em>(this change was included in the release notes for 1.0.0-alpha.16, but was accidentally excluded from the published crate)</em></li> </ul> <h2>[1.0.0-alpha.16] - 2024-11-25</h2> <h3>Removed (<em>⚠️ breaking changes ⚠️</em>)</h3> <ul> <li>the <code>enumset1</code>/<code>enumset</code> optional dependency has been removed, as its <code>JsonSchema</code> impl did not actually match the default serialization format of <code>EnumSet</code> (<a href="https://redirect.github.com/GREsau/schemars/pull/339">GREsau/schemars#339</a>)</li> </ul> <h3>Changed (<em>⚠️ breaking changes ⚠️</em>)</h3> <ul> <li>MSRV is now 1.70</li> <li><a href="https://graham.cool/schemars/deriving/attributes/#example">The <code>example</code> attribute</a> value is now an arbitrary expression, rather than a string literal identifying a function to call. To avoid silent behaviour changes, the expression must not be a string literal where the value can be parsed as a function path - e.g. <code>#[schemars(example = &quot;foo&quot;)]</code> is now a compile error, but <code>#[schemars(example = foo())]</code> is allowed (as is <code>#[schemars(example = &amp;&quot;foo&quot;)]</code> if you want the the literal string value <code>&quot;foo&quot;</code> to be the example).</li> </ul> <h3>Fixed</h3> <ul> <li>The &quot;deserialize&quot; schema for <code>bytes::Bytes</code>/<code>BytesMut</code> now allows strings, matching the actual deserialize behaviour of the types.</li> <li>The schema for <code>either::Either</code> now matches the actual serialize/deserialize behaviour of that type.</li> </ul> <h2>[1.0.0-alpha.15] - 2024-09-05</h2> <h3>Added</h3> <ul> <li><code>SchemaSettings</code> now has a <code>contract</code> field which determines whether the generated schemas describe how types are serialized or <em>de</em>serialized. By default, this is set to <code>Deserialize</code>, as this more closely matches the behaviour of previous versions - you can change this to <code>Serialize</code> to instead generate schemas describing the type's serialization behaviour (<a href="https://redirect.github.com/GREsau/schemars/issues/48">GREsau/schemars#48</a> / <a href="https://redirect.github.com/GREsau/schemars/pull/335">GREsau/schemars#335</a>)</li> </ul> <h3>Changed</h3> <ul> <li>Schemas generated for enums with no variants will now generate <code>false</code> (or equivalently <code>{&quot;not&quot;:{}}</code>), instead of <code>{&quot;enum&quot;:[]}</code>. This is so generated schemas no longer violate the JSON Schema spec's recommendation that a schema's <code>enum</code> array &quot;SHOULD have at least one element&quot;.</li> </ul> <h2>[1.0.0-alpha.14] - 2024-08-29</h2> <h3>Added</h3> <ul> <li>Read <code>#[garde(...)]</code> attributes as an alternative to <code>#[validate(...)]</code> (<a href="https://redirect.github.com/GREsau/schemars/issues/233">GREsau/schemars#233</a> / <a href="https://redirect.github.com/GREsau/schemars/pull/331">GREsau/schemars#331</a>). See <a href="https://graham.cool/schemars/deriving/attributes/#supported-validatorgarde-attributes">the documentation</a> for a full list of supported attributes.</li> </ul> <h2>[1.0.0-alpha.13] - 2024-08-27</h2> <h3>Fixed</h3> <ul> <li>Fix compile errors when using <code>#[validate(regex(path = *expr))]</code> attribute</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/GREsau/schemars/commit/104b0fd65055d4b46f8dcbe38cdd2ef2c4098fe2"><code>104b0fd</code></a> v0.8.22</li> <li><a href="https://github.com/GREsau/schemars/commit/5867cedc54c0ebb3fc78091059080232d3facdeb"><code>5867ced</code></a> Fix compatibility with rust 2024 edition (<a href="https://redirect.github.com/GREsau/schemars/issues/378">#378</a>)</li> <li><a href="https://github.com/GREsau/schemars/commit/e0c2c31dc9a86f813defe4621c403d5b9e4244de"><code>e0c2c31</code></a> Update changelog for 1.0.0-alpha.2</li> <li><a href="https://github.com/GREsau/schemars/commit/3271fbd96a65c0d15e1cc5d5391810842cae0c28"><code>3271fbd</code></a> Update changelog for 1.0.0-alpha.1</li> <li><a href="https://github.com/GREsau/schemars/commit/a20c197b999cd014a8658b2dbbda31c2b41d48bb"><code>a20c197</code></a> Update readme - link to v1 branch/PR</li> <li>See full diff in <a href="https://github.com/GREsau/schemars/compare/v0.8.21...v0.8.22">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.21&new-version=0.8.22)](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> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent ab1bc03 commit c627fef

File tree

2 files changed

+14
-849
lines changed

2 files changed

+14
-849
lines changed

0 commit comments

Comments
 (0)