Skip to content

Commit

Permalink
fix(schemas): Fix the [lints] JSON Schema (#15035)
Browse files Browse the repository at this point in the history
### What does this PR try to resolve?

The version update addresses the `flatten` issue but I also fixed an
issue with `lints.workspace`.

I didn't notice any other user-facing side effect of the upgrade but I
could have missed that in the noise.

Fixes #15030

### How should we test and review this PR?

### Additional information
  • Loading branch information
weihanglo authored Jan 8, 2025
2 parents 4a1e2ea + 6fe36c2 commit c3a2b1a
Show file tree
Hide file tree
Showing 6 changed files with 211 additions and 236 deletions.
64 changes: 34 additions & 30 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ rustc-hash = "2.0.0"
rustc-stable-hash = "0.1.1"
rustfix = { version = "0.9.0", path = "crates/rustfix" }
same-file = "1.0.6"
schemars = "0.8.21"
schemars = "1.0.0-alpha.17"
security-framework = "3.0.0"
semver = { version = "1.0.23", features = ["serde"] }
serde = "1.0.204"
Expand Down
2 changes: 1 addition & 1 deletion crates/cargo-util-schemas/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repository.workspace = true
description = "Deserialization schemas for Cargo"

[dependencies]
schemars = { workspace = true, features = ["preserve_order","semver"], optional = true }
schemars = { workspace = true, features = ["preserve_order", "semver1"], optional = true }
semver.workspace = true
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true, optional = true }
Expand Down
Loading

0 comments on commit c3a2b1a

Please sign in to comment.