Skip to content

chore(deps): update rust crate schemars to v1 - #2287

Closed
renovate[bot] wants to merge 2 commits into
mainfrom
renovate/schemars-1.x
Closed

chore(deps): update rust crate schemars to v1#2287
renovate[bot] wants to merge 2 commits into
mainfrom
renovate/schemars-1.x

Conversation

@renovate

@renovate renovate Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
schemars (source) workspace.dependencies major 0.81.0

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

Cargo major update — Before merging, verify the workspace compiles and check upstream release notes for removed features or API changes.


Release Notes

GREsau/schemars (schemars)

v1.2.2

Compare Source

  • Update to syn 3 in schemars_derive

v1.2.1

Compare Source

Fixed
  • transform attributes are now applied after the schema is otherwise fully constructed. In particular, they're now applied after all other attributes are processed. (#​505)

v1.2.0

Compare Source

Added
Changed
  • Schemas generated for HashMap/BTreeMap with enum keys are now more specific (#​452)

v1.1.0

Compare Source

Added
  • Public functions that have no side-effects are now marked with #[must_use] so that they report a lint warning when the returned value is unused, as this likely indicates a mistake.
Fixed
  • Improve accuracy of schemas for flattened enums, in particular: unit variants of externally-tagged enums, and enums wrapped in Option<>. (#​464 / #​483)

v1.0.5

Compare Source

Fixed
  • Fix schema.pointer_mut() to resolve URI fragment identifiers like #/$defs/foo, matching current behaviour of schema.pointer() (#​478 / #​479)

v1.0.4

Compare Source

Fixed
  • Fix JsonSchema impl on atomic types being ignored on non-nightly compilers due to a buggy cfg check (#​453)
  • Fix compatibility with minimal dependency versions, e.g. old(-ish) versions of syn (#​450)
  • Fix derive for empty tuple variants (#​455)

v1.0.3

Compare Source

Fixed
  • Fix compile error when a doc comment is set on both a transparent (or newtype) struct and its field (#​446)
  • Fix json_schema!() macro compatibility when used from pre-2021 rust editions (#​447)

v1.0.2

Compare Source

Fixed
  • Fix schema properties being incorrectly reordered during serialization (#​444)

v1.0.1

Compare Source

Fixed
  • Deriving JsonSchema with no_std broken due to std::borrow::ToOwned trait not being in scope (#​441)

v1.0.0

Compare Source

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 (#​436)
  • Optimise type param usage in SchemaGenerator::subschema_for, reducing LLVM line count and improving compile times (#​439)

v0.9.0

Compare Source

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.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Between 12:00 AM and 03:59 AM, only on Monday (* 0-3 * * 1)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot requested a review from a team as a code owner August 10, 2026 00:45
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b6fac5faff

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread Cargo.toml
] }
rustls-webpki = { version = "0.103", default-features = false }
schemars = { version = "0.8", default-features = false }
schemars = { version = "1.0", default-features = false }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep schemars aligned with typify's schema API

When the config crate builds, lib/datadog-agent/config/build/datadog_config_gen.rs deserializes into schemars::schema::RootSchema and passes that value to typify::TypeSpace::add_root_schema; typify 0.7.0 still depends on and accepts schemars 0.8.22. This bump makes the workspace schemars resolve to 1.2.2 instead, where the old schema::RootSchema API is gone and no longer matches typify's 0.8 type, so datadog-agent-config cannot compile/regenerate the typed configuration model. Keep schemars on 0.8 or update typify and the build code together.

Useful? React with 👍 / 👎.

@datadog-prod-us1-3 datadog-prod-us1-3 Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Datadog Autotest: FAIL

The schemars 1.x upgrade removes the RootSchema API used by configuration generation, while typify 0.7 still requires schemars 0.8’s type. This makes datadog-agent-config uncompilable and blocks production artifact builds.

📊 Validated against 9 scenarios · Open Bits AI session

🤖 Datadog Autotest · Commit b6fac5f · What is Autotest? · @DataDog review to ask questions · Any feedback? Reach out in #autotest

Comment thread Cargo.toml
] }
rustls-webpki = { version = "0.103", default-features = false }
schemars = { version = "0.8", default-features = false }
schemars = { version = "1.0", default-features = false }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 Upgrade removes the RootSchema API required by config generation

Every build containing datadog-agent-config fails, preventing production artifacts from being compiled.

Assertion details
  • Input: Compile datadog-agent-config with the PR's resolved schemars 1.2.2 dependency.
  • Expected: The dependency upgrade must leave datadog-agent-config buildable while preserving typify-based configuration generation.
  • Actual: Compilation fails before configuration generation: schemars 1.2.2 reports E0425 because RootSchema no longer exists and E0603 because schema is private. Using v1's public Schema instead also fails because typify 0.7.0 requires schemars 0.8.22's RootSchema. A complete fix must retain schemars 0.8 or jointly move typify and the generator to compatible v1 APIs.

Was this helpful? React 👍 or 👎
🤖 Datadog Autotest · What is Autotest? · @DataDog review to ask questions · Any feedback? Reach out in #autotest

@pr-commenter

pr-commenter Bot commented Aug 10, 2026

Copy link
Copy Markdown

Regression Detector (Agent Data Plane)

Optimization Goals: ⚠️ Report unavailable

The benchmark run did not produce a usable report: outputs/report.json is missing

Check the benchmark job logs for details.

@renovate

renovate Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@webern

webern commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Closing with #2289 to track a dependency hell that needs some focus work.

@webern webern closed this Aug 10, 2026
@renovate

renovate Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 1.x releases. But if you manually upgrade to 1.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate
renovate Bot deleted the renovate/schemars-1.x branch August 10, 2026 11:01
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.

1 participant