Skip to content

Commit 01d5824

Browse files
Add: pattern for color values
1 parent 741dca2 commit 01d5824

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/schema/definition.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,10 @@
166166
},
167167
"values": {
168168
"type": "array",
169-
"description": "An array of default 6-digit hexadecimal color values for this color option.",
169+
"description": "An array of default hexadecimal color values for this color option.",
170170
"items": {
171-
"type": "string"
171+
"type": "string",
172+
"pattern": "^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
172173
}
173174
},
174175
"notEqualTo": {

0 commit comments

Comments
 (0)