Skip to content

Commit

Permalink
Add reserved words to JSON schema
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbrunsfeld authored and amaanq committed Nov 22, 2024
1 parent 9fcc822 commit 708f10f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/assets/schemas/grammar.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,20 @@
}
},

"reserved": {
"type": "object",
"patternProperties": {
"^[a-zA-Z_]\\w*$": {
"type": "array",
"uniqueItems": true,
"items": {
"$ref": "#/definitions/rule"
}
}
},
"additionalProperties": false
},

"externals": {
"type": "array",
"uniqueItems": true,
Expand Down

0 comments on commit 708f10f

Please sign in to comment.