mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-22 08:31:50 +01:00
feat(config): add "color-hex" format to jsonschema
This commit specifies "color-hex" as the "format" when implementing JsonSchema for Hex. resolve #911
This commit is contained in:
1 parent
e2f2d6b919
commit
bdc1cad597
1 file changed
+1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user