Skip to content

Commit 1f18f9a

Browse files
committed
fix(metaschema): Explicitly type patterns as strings
1 parent 314622c commit 1f18f9a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/metaschema.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"versions": {
6969
"type": "array",
7070
"items": {
71+
"type": "string",
7172
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
7273
}
7374
}
@@ -470,7 +471,7 @@
470471
"properties": {
471472
"datatypes": {
472473
"type": "array",
473-
"items": { "pattern": "^[a-z]+$" }
474+
"items": { "type": "string", "pattern": "^[a-z]+$" }
474475
}
475476
},
476477
"required": ["datatypes"],
@@ -661,7 +662,7 @@
661662
"level": { "enum": ["optional", "recommended", "required"] },
662663
"datatypes": {
663664
"type": "array",
664-
"items": { "pattern": "^[a-z]+$" }
665+
"items": { "type": "string", "pattern": "^[a-z]+$" }
665666
},
666667
"stem": { "type": "string" },
667668
"extensions": { "type": "array", "items": { "type": "string" } }
@@ -675,11 +676,11 @@
675676
"level": { "enum": ["optional", "recommended", "required"] },
676677
"datatypes": {
677678
"type": "array",
678-
"items": { "pattern": "^[a-z]+$" }
679+
"items": { "type": "string", "pattern": "^[a-z]+$" }
679680
},
680681
"suffixes": {
681682
"type": "array",
682-
"items": { "pattern": "^[a-zA-Z0-9]+$" }
683+
"items": { "type": "string", "pattern": "^[a-zA-Z0-9]+$" }
683684
},
684685
"extensions": { "type": "array", "items": { "type": "string" } },
685686
"entities": {

0 commit comments

Comments
 (0)