Enforce all dicts with a fixed set of keys in test.json schema

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.
pull/8924/head
Jon Turney 3 years ago
parent 6e0a0fd1da
commit 81d2d559f1
No known key found for this signature in database
GPG Key ID: C7C86F0370285C81
  1. 9
      data/test.schema.json

@ -12,6 +12,7 @@
"type": "array", "type": "array",
"items": { "items": {
"type": "object", "type": "object",
"additionalProperties": false,
"properties": { "properties": {
"file": { "file": {
"type": "string" "type": "string"
@ -59,6 +60,7 @@
"type": "array", "type": "array",
"items": { "items": {
"type": "object", "type": "object",
"additionalProperties": false,
"properties": { "properties": {
"val": { "val": {
"type": "string" "type": "string"
@ -110,6 +112,7 @@
"type": "array", "type": "array",
"items": { "items": {
"type": "object", "type": "object",
"additionalProperties": false,
"properties": { "properties": {
"line": { "line": {
"type": "string" "type": "string"
@ -120,6 +123,12 @@
"literal", "literal",
"re" "re"
] ]
},
"count": {
"type": "integer"
},
"comment": {
"type": "string"
} }
}, },
"required": [ "required": [

Loading…
Cancel
Save