mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-07-12 16:12:44 +02: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 {
|
fn json_schema(_: &mut SchemaGenerator) -> Schema {
|
||||||
SchemaObject {
|
SchemaObject {
|
||||||
instance_type: Some(InstanceType::String.into()),
|
instance_type: Some(InstanceType::String.into()),
|
||||||
|
format: Some("color-hex".to_string()),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}
|
}
|
||||||
.into()
|
.into()
|
||||||
|
|||||||
Reference in New Issue
Block a user