Skip to content

chore(deps): update schemars requirement from 0.8 to 1.2 - #217

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/schemars-1.2
Open

chore(deps): update schemars requirement from 0.8 to 1.2#217
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/schemars-1.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 29, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on schemars to permit the latest version.

Release notes

Sourced from schemars's releases.

v0.8.22

Fixed:

Changelog

Sourced from schemars's changelog.

[0.8.22] - 2025-02-25

Fixed:

[1.0.0-alpha.17] - 2024-12-02

Changed

  • For newtype variants of internally-tagged enums, prefer referencing the inner type's schema via $ref instead of always inlining the schema (GREsau/schemars#355) (this change was included in the release notes for 1.0.0-alpha.16, but was accidentally excluded from the published crate)

[1.0.0-alpha.16] - 2024-11-25

Removed (⚠️ breaking changes ⚠️)

  • the enumset1/enumset optional dependency has been removed, as its JsonSchema impl did not actually match the default serialization format of EnumSet (GREsau/schemars#339)

Changed (⚠️ breaking changes ⚠️)

  • MSRV is now 1.70
  • The example attribute 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. #[schemars(example = "foo")] is now a compile error, but #[schemars(example = foo())] is allowed (as is #[schemars(example = &"foo")] if you want the the literal string value "foo" to be the example).

Fixed

  • The "deserialize" schema for bytes::Bytes/BytesMut now allows strings, matching the actual deserialize behaviour of the types.
  • The schema for either::Either now matches the actual serialize/deserialize behaviour of that type.

[1.0.0-alpha.15] - 2024-09-05

Added

  • SchemaSettings now has a contract field which determines whether the generated schemas describe how types are serialized or deserialized. By default, this is set to Deserialize, as this more closely matches the behaviour of previous versions - you can change this to Serialize to instead generate schemas describing the type's serialization behaviour (GREsau/schemars#48 / GREsau/schemars#335)

Changed

  • Schemas generated for enums with no variants will now generate false (or equivalently {"not":{}}), instead of {"enum":[]}. This is so generated schemas no longer violate the JSON Schema spec's recommendation that a schema's enum array "SHOULD have at least one element".

[1.0.0-alpha.14] - 2024-08-29

Added

[1.0.0-alpha.13] - 2024-08-27

Fixed

  • Fix compile errors when using #[validate(regex(path = *expr))] attribute

... (truncated)

Commits
  • 104b0fd v0.8.22
  • 5867ced Fix compatibility with rust 2024 edition (#378)
  • e0c2c31 Update changelog for 1.0.0-alpha.2
  • 3271fbd Update changelog for 1.0.0-alpha.1
  • a20c197 Update readme - link to v1 branch/PR
  • 5e20a37 v0.8.21
  • a9a9c7e Fix "null" default not being set on schema (#296)
  • 7ecaa7f Revert unintentional change in behaviour when combining default and `requir...
  • cf5be1b Ignore failing test
  • 449bb1a Add more tests for different schema settings
  • Additional commits viewable in compare view

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot @github

dependabot Bot commented on behalf of github Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: dependencies, rust. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot
dependabot Bot requested a review from BrianNguyen29 as a code owner June 29, 2026 17:27
@dependabot
dependabot Bot force-pushed the dependabot/cargo/schemars-1.2 branch from 914e640 to abfab3e Compare July 8, 2026 08:02
Updates the requirements on [schemars](https://github.com/GREsau/schemars) to permit the latest version.
- [Release notes](https://github.com/GREsau/schemars/releases)
- [Changelog](https://github.com/GREsau/schemars/blob/master/CHANGELOG.md)
- [Commits](GREsau/schemars@v0.8.0...v0.8.22)

---
updated-dependencies:
- dependency-name: schemars
  dependency-version: 0.8.22
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/cargo/schemars-1.2 branch from abfab3e to 6772cef Compare July 17, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants