mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-03-26 11:21:20 +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:
@@ -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