Skip to content

Commit

Permalink
Enforce all dicts with a fixed set of keys in test.json schema
Browse files Browse the repository at this point in the history
Improve test.json schema to disallow arbitrary keys in all dicts which
have a defined set of keys (the 'installed', matrix 'options' and
'stdout' dicts).

Add 'count' and 'comment' keys to 'stdout' dict.
  • Loading branch information
jon-turney committed Jun 23, 2021
1 parent 6e0a0fd commit 81d2d55
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions data/test.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"file": {
"type": "string"
Expand Down Expand Up @@ -59,6 +60,7 @@
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"val": {
"type": "string"
Expand Down Expand Up @@ -110,6 +112,7 @@
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"line": {
"type": "string"
Expand All @@ -120,6 +123,12 @@
"literal",
"re"
]
},
"count": {
"type": "integer"
},
"comment": {
"type": "string"
}
},
"required": [
Expand Down

0 comments on commit 81d2d55

Please sign in to comment.