Skip to content

Commit

Permalink
fix(config): validate color values
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Aug 22, 2020
1 parent 7207660 commit e6faf1a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/config/schema.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
$schema: "http://json-schema.org/schema#"
$id: cautious-journey
definitions:
hex-string:
type: string
pattern: "[0-9a-fA-F]{6}"

label-ref:
type: object
required:
Expand Down Expand Up @@ -33,7 +37,7 @@ definitions:
- requires
properties:
color:
type: string
$ref: "#/definitions/hex-string"
desc:
type: string
default: ''
Expand Down Expand Up @@ -107,7 +111,7 @@ definitions:
colors:
type: array
items:
type: string
$ref: "#/definitions/hex-string"
comment:
type: boolean
default: true
Expand Down

0 comments on commit e6faf1a

Please sign in to comment.