Skip to content

Commit

Permalink
fix(metaschema): Explicitly type patterns as strings
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Aug 20, 2024
1 parent 314622c commit 1f18f9a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/metaschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"versions": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
}
}
Expand Down Expand Up @@ -470,7 +471,7 @@
"properties": {
"datatypes": {
"type": "array",
"items": { "pattern": "^[a-z]+$" }
"items": { "type": "string", "pattern": "^[a-z]+$" }
}
},
"required": ["datatypes"],
Expand Down Expand Up @@ -661,7 +662,7 @@
"level": { "enum": ["optional", "recommended", "required"] },
"datatypes": {
"type": "array",
"items": { "pattern": "^[a-z]+$" }
"items": { "type": "string", "pattern": "^[a-z]+$" }
},
"stem": { "type": "string" },
"extensions": { "type": "array", "items": { "type": "string" } }
Expand All @@ -675,11 +676,11 @@
"level": { "enum": ["optional", "recommended", "required"] },
"datatypes": {
"type": "array",
"items": { "pattern": "^[a-z]+$" }
"items": { "type": "string", "pattern": "^[a-z]+$" }
},
"suffixes": {
"type": "array",
"items": { "pattern": "^[a-zA-Z0-9]+$" }
"items": { "type": "string", "pattern": "^[a-zA-Z0-9]+$" }
},
"extensions": { "type": "array", "items": { "type": "string" } },
"entities": {
Expand Down

0 comments on commit 1f18f9a

Please sign in to comment.