From 0180d80fa6d0243567f3bc0bb3575e7246473360 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Sun, 1 Nov 2026 06:57:52 -0800 Subject: [PATCH] docs(schema): the schema descriptions name v0.2.0 The doc comments that become the description of schema.json and schema.bar.json said v0.1.42 (Windows), and the macOS views of the schemas said v0.1.0 and linked komorebi.0.1.0.schema.json. They now say v0.2.0 (the unified release) and link the 0.2.0 file. The macOS site domain in those links is not touched: where the schemas are published is a release decision. The checked-in schema.json and schema.bar.json of the Windows tree and of komorebi-for-mac were edited to match, and the size and hash pins of crates/komorebi-bar-core/tests/schema_oracle.rs were updated for the two bar schemas (Windows 248,539 bytes, FNV-1a aaa0fabfb45967b7; macOS 116,925 bytes, a042f6ac063a0cfd). The KDE schemas carry no version text. Verified: cargo test -p komorebi-config -p komorebi-bar-core -p komorebi-protocol and -p komorebi-linux --test schemas pass. The komorebi-config doctest fails to link in the nix dev shell (it cross-compiles to windows-msvc); that is not caused by this change. --- crates/komorebi-bar-core/src/config/komobar.rs | 2 +- crates/komorebi-bar-core/src/schema/changes.rs | 2 +- crates/komorebi-bar-core/tests/schema_oracle.rs | 6 +++--- crates/komorebi-config/src/changes.rs | 2 +- crates/komorebi-config/src/static_config.rs | 2 +- komorebi-for-mac/schema.bar.json | 2 +- komorebi-for-mac/schema.json | 2 +- schema.bar.json | 2 +- schema.json | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/crates/komorebi-bar-core/src/config/komobar.rs b/crates/komorebi-bar-core/src/config/komobar.rs index 868d2a7c..65795313 100644 --- a/crates/komorebi-bar-core/src/config/komobar.rs +++ b/crates/komorebi-bar-core/src/config/komobar.rs @@ -26,7 +26,7 @@ use std::sync::atomic::Ordering; #[derive(Clone, Debug, Serialize, Deserialize)] #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] -/// The `komorebi.bar.json` configuration file reference for `v0.1.42` +/// The `komorebi.bar.json` configuration file reference for `v0.2.0` pub struct KomobarConfig { /// Bar height #[cfg_attr(feature = "schemars", schemars(extend("default" = 50)))] diff --git a/crates/komorebi-bar-core/src/schema/changes.rs b/crates/komorebi-bar-core/src/schema/changes.rs index 8175560b..9f2898b2 100644 --- a/crates/komorebi-bar-core/src/schema/changes.rs +++ b/crates/komorebi-bar-core/src/schema/changes.rs @@ -26,7 +26,7 @@ pub const MACOS: &[(&str, Change)] = &[ ( "/description", Change::Set( - r####""The `komorebi.bar.json` static configuration file reference for komorebi for Mac `v0.1.0`\n\n`\"$schema\": \"https://komorebi-for-mac.lgug2z.com/komorebi.bar.0.1.0.schema.json\"`""####, + r####""The `komorebi.bar.json` static configuration file reference for komorebi for Mac `v0.2.0`\n\n`\"$schema\": \"https://komorebi-for-mac.lgug2z.com/komorebi.bar.0.2.0.schema.json\"`""####, ), ), ( diff --git a/crates/komorebi-bar-core/tests/schema_oracle.rs b/crates/komorebi-bar-core/tests/schema_oracle.rs index 59054bea..c51367b1 100644 --- a/crates/komorebi-bar-core/tests/schema_oracle.rs +++ b/crates/komorebi-bar-core/tests/schema_oracle.rs @@ -22,14 +22,14 @@ const PINS: [Pin; 2] = [ Pin { file: "schema.bar.json", lines: 9_091, - bytes: 248_540, - fnv1a: 0x83d6_6fd4_9ae8_3766, + bytes: 248_539, + fnv1a: 0xaaa0_fabf_b459_67b7, }, Pin { file: "komorebi-for-mac/schema.bar.json", lines: 3_774, bytes: 116_925, - fnv1a: 0xc99e_0294_9424_e5d7, + fnv1a: 0xa042_f6ac_063a_0cfd, }, ]; diff --git a/crates/komorebi-config/src/changes.rs b/crates/komorebi-config/src/changes.rs index 4bb1c06f..e2cd8274 100644 --- a/crates/komorebi-config/src/changes.rs +++ b/crates/komorebi-config/src/changes.rs @@ -245,7 +245,7 @@ const MACOS: &[(&str, Change)] = &[ ( "/description", Change::Set( - r####""The `komorebi.json` static configuration file reference for komorebi for Mac `v0.1.0`\n\n`\"$schema\": \"https://komorebi-for-mac.lgug2z.com/komorebi.0.1.0.schema.json\"`""####, + r####""The `komorebi.json` static configuration file reference for komorebi for Mac `v0.2.0`\n\n`\"$schema\": \"https://komorebi-for-mac.lgug2z.com/komorebi.0.2.0.schema.json\"`""####, ), ), ( diff --git a/crates/komorebi-config/src/static_config.rs b/crates/komorebi-config/src/static_config.rs index 109e040f..8160f5b1 100644 --- a/crates/komorebi-config/src/static_config.rs +++ b/crates/komorebi-config/src/static_config.rs @@ -275,7 +275,7 @@ pub enum AppSpecificConfigurationPath { #[serde_with::serde_as] #[derive(Clone, Debug, Default, Serialize, Deserialize, PartialEq)] #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] -/// The `komorebi.json` static configuration file reference for `v0.1.42` +/// The `komorebi.json` static configuration file reference for `v0.2.0` pub struct StaticConfig { /// DEPRECATED from v0.1.22: no longer required #[cfg_attr(feature = "schemars", schemars(extend("deprecated" = true)))] diff --git a/komorebi-for-mac/schema.bar.json b/komorebi-for-mac/schema.bar.json index 9d9aaebf..05400f22 100644 --- a/komorebi-for-mac/schema.bar.json +++ b/komorebi-for-mac/schema.bar.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "KomobarConfig", - "description": "The `komorebi.bar.json` static configuration file reference for komorebi for Mac `v0.1.0`\n\n`\"$schema\": \"https://komorebi-for-mac.lgug2z.com/komorebi.bar.0.1.0.schema.json\"`", + "description": "The `komorebi.bar.json` static configuration file reference for komorebi for Mac `v0.2.0`\n\n`\"$schema\": \"https://komorebi-for-mac.lgug2z.com/komorebi.bar.0.2.0.schema.json\"`", "type": "object", "properties": { "center_widgets": { diff --git a/komorebi-for-mac/schema.json b/komorebi-for-mac/schema.json index e86315f9..4ea5755f 100644 --- a/komorebi-for-mac/schema.json +++ b/komorebi-for-mac/schema.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "StaticConfig", - "description": "The `komorebi.json` static configuration file reference for komorebi for Mac `v0.1.0`\n\n`\"$schema\": \"https://komorebi-for-mac.lgug2z.com/komorebi.0.1.0.schema.json\"`", + "description": "The `komorebi.json` static configuration file reference for komorebi for Mac `v0.2.0`\n\n`\"$schema\": \"https://komorebi-for-mac.lgug2z.com/komorebi.0.2.0.schema.json\"`", "type": "object", "properties": { "animation": { diff --git a/schema.bar.json b/schema.bar.json index e832d2fe..a17598f3 100644 --- a/schema.bar.json +++ b/schema.bar.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "KomobarConfig", - "description": "The `komorebi.bar.json` configuration file reference for `v0.1.42`", + "description": "The `komorebi.bar.json` configuration file reference for `v0.2.0`", "type": "object", "properties": { "center_widgets": { diff --git a/schema.json b/schema.json index 3c9b20cb..92e0c163 100644 --- a/schema.json +++ b/schema.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "StaticConfig", - "description": "The `komorebi.json` static configuration file reference for `v0.1.42`", + "description": "The `komorebi.json` static configuration file reference for `v0.2.0`", "type": "object", "properties": { "animation": {