diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2021-06-22 22:02:59 +0100 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2021-06-23 13:09:17 +0100 |
commit | 81d2d559f161026d7633a5c09d5e28fe3e2e5ebf (patch) | |
tree | da13d7f7eab6a556e969c8d01ab5834ff15ae911 /data/test.schema.json | |
parent | 6e0a0fd1da979acb25c1b0d7397e378d613953ba (diff) | |
download | meson-81d2d559f161026d7633a5c09d5e28fe3e2e5ebf.zip meson-81d2d559f161026d7633a5c09d5e28fe3e2e5ebf.tar.gz meson-81d2d559f161026d7633a5c09d5e28fe3e2e5ebf.tar.bz2 |
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.
Diffstat (limited to 'data/test.schema.json')
-rw-r--r-- | data/test.schema.json | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/data/test.schema.json b/data/test.schema.json index aa3cf8f..43c1392 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": [ |