From bdc1cad597a309fc2eb7c9163d00ffeb4224c279 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Thu, 11 Jul 2024 15:20:17 -0700 Subject: [PATCH] feat(config): add "color-hex" format to jsonschema This commit specifies "color-hex" as the "format" when implementing JsonSchema for Hex. resolve #911 --- komorebi/src/colour.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/komorebi/src/colour.rs b/komorebi/src/colour.rs index 7428b004..3166a382 100644 --- a/komorebi/src/colour.rs +++ b/komorebi/src/colour.rs @@ -39,6 +39,7 @@ impl JsonSchema for Hex { fn json_schema(_: &mut SchemaGenerator) -> Schema { SchemaObject { instance_type: Some(InstanceType::String.into()), + format: Some("color-hex".to_string()), ..Default::default() } .into()