Skip to content

Commit 6fe36c2

Browse files
committed
fix(schemas): Make lints.workspace not required
1 parent e6114c3 commit 6fe36c2

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

crates/cargo-util-schemas/manifest.schema.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -951,9 +951,6 @@
951951
"type": "boolean"
952952
}
953953
},
954-
"required": [
955-
"workspace"
956-
],
957954
"additionalProperties": {
958955
"type": "object",
959956
"additionalProperties": {

crates/cargo-util-schemas/src/manifest/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,6 +1525,7 @@ impl TomlPlatform {
15251525
#[cfg_attr(feature = "unstable-schema", derive(schemars::JsonSchema))]
15261526
pub struct InheritableLints {
15271527
#[serde(skip_serializing_if = "is_false")]
1528+
#[cfg_attr(feature = "unstable-schema", schemars(default))]
15281529
pub workspace: bool,
15291530
#[serde(flatten)]
15301531
pub lints: TomlLints,

0 commit comments

Comments
 (0)