From 81d2d559f161026d7633a5c09d5e28fe3e2e5ebf Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Tue, 22 Jun 2021 22:02:59 +0100 Subject: 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. --- data/test.schema.json | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'data/test.schema.json') diff --git a/data/test.schema.json b/data/test.schema.json index aa3cf8fec..43c1392c1 100644 --- a/data/test.schema.json +++ b/data/test.schema.json @@ -12,6 +12,7 @@ "type": "array", "items": { "type": "object", + "additionalProperties": false, "properties": { "file": { "type": "string" @@ -59,6 +60,7 @@ "type": "array", "items": { "type": "object", + "additionalProperties": false, "properties": { "val": { "type": "string" @@ -110,6 +112,7 @@ "type": "array", "items": { "type": "object", + "additionalProperties": false, "properties": { "line": { "type": "string" @@ -120,6 +123,12 @@ "literal", "re" ] + }, + "count": { + "type": "integer" + }, + "comment": { + "type": "string" } }, "required": [ -- cgit v1.2.3