diff --git a/komorebi-for-kde/komorebi/src/core/pathext.rs b/komorebi-for-kde/komorebi/src/core/pathext.rs index 729f7e88..81f61ea7 100644 --- a/komorebi-for-kde/komorebi/src/core/pathext.rs +++ b/komorebi-for-kde/komorebi/src/core/pathext.rs @@ -137,9 +137,15 @@ impl serde_with::schemars_1::JsonSchemaAs for ResolvedPathBuf { } fn json_schema(_generator: &mut schemars::SchemaGenerator) -> schemars::Schema { + // the description is part of the checked-in schemas, which differ per platform + #[cfg(target_os = "windows")] + let description = "A file system path. Environment variables like %VAR%, $Env:VAR, or $VAR are automatically resolved."; + #[cfg(not(target_os = "windows"))] + let description = "A file system path. Environment variables like $VAR are automatically resolved."; + schemars::json_schema!({ "type": "string", - "description": "A file system path. Environment variables like $VAR are automatically resolved." + "description": description }) } }