Skip to content

Commit

Permalink
Add: pattern for color values
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianKoerner committed Nov 20, 2024
1 parent 741dca2 commit 01d5824
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/schema/definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,10 @@
},
"values": {
"type": "array",
"description": "An array of default 6-digit hexadecimal color values for this color option.",
"description": "An array of default hexadecimal color values for this color option.",
"items": {
"type": "string"
"type": "string",
"pattern": "^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
}
},
"notEqualTo": {
Expand Down

0 comments on commit 01d5824

Please sign in to comment.