Skip to content

Commit

Permalink
feat(config): add "color-hex" format to jsonschema
Browse files Browse the repository at this point in the history
This commit specifies "color-hex" as the "format" when implementing
JsonSchema for Hex.

resolve #911
  • Loading branch information
LGUG2Z committed Jul 11, 2024
1 parent e2f2d6b commit bdc1cad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions komorebi/src/colour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit bdc1cad

Please sign in to comment.