Skip to content

Commit 4a93534

Browse files
Fix: add missing string type validation for colorAttribute
1 parent ae663e6 commit 4a93534

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/schema/v1/definition.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@
9696
},
9797
"colorAttribute": {
9898
"anyOf": [
99+
{
100+
"type": "string",
101+
"pattern": "^[a-zA-Z]+$"
102+
},
99103
{
100104
"type": "string",
101105
"pattern": "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"

0 commit comments

Comments
 (0)