Skip to content

Commit e3794e7

Browse files
fix: add missing schemars(extend("properties" ...)) to ensure properties are not missing when we run cargo dev generate-all
1 parent 5d4a504 commit e3794e7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

crates/ruff_workspace/src/options.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2500,6 +2500,13 @@ pub struct IsortOptions {
25002500
local-folder = "Local folder imports"
25012501
"#
25022502
)]
2503+
#[cfg_attr(feature = "schemars", schemars(extend("properties" = {
2504+
"future": {"type": "string"},
2505+
"standard-library": {"type": "string"},
2506+
"third-party": {"type": "string"},
2507+
"first-party": {"type": "string"},
2508+
"local-folder": {"type": "string"}
2509+
})))]
25032510
pub import_heading: Option<FxHashMap<ImportSection, String>>,
25042511

25052512
/// The number of blank lines to place after imports.

0 commit comments

Comments
 (0)