Skip to content

Commit

Permalink
fix(schemas): Make lints.workspace not required
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Jan 8, 2025
1 parent e6114c3 commit 6fe36c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions crates/cargo-util-schemas/manifest.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -951,9 +951,6 @@
"type": "boolean"
}
},
"required": [
"workspace"
],
"additionalProperties": {
"type": "object",
"additionalProperties": {
Expand Down
1 change: 1 addition & 0 deletions crates/cargo-util-schemas/src/manifest/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1525,6 +1525,7 @@ impl TomlPlatform {
#[cfg_attr(feature = "unstable-schema", derive(schemars::JsonSchema))]
pub struct InheritableLints {
#[serde(skip_serializing_if = "is_false")]
#[cfg_attr(feature = "unstable-schema", schemars(default))]
pub workspace: bool,
#[serde(flatten)]
pub lints: TomlLints,
Expand Down

0 comments on commit 6fe36c2

Please sign in to comment.