From 1dee6c618d879c20bf0a70eebc54bc8caf47716f Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Tue, 28 Apr 2020 00:45:08 +0100 Subject: Update test.json schema to add stdout Update the test.json schema, adding the 'stdout' property. Also amend the test.json schema so the presence of an unexpected property on the root object causes a validation error. v2: Also add 'tools' property to json schema. Amend the documentation not to use the word 'list' to describe a dict. --- data/test.schema.json | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'data') diff --git a/data/test.schema.json b/data/test.schema.json index 72f160f..d3b80d0 100644 --- a/data/test.schema.json +++ b/data/test.schema.json @@ -1,5 +1,6 @@ { "type": "object", + "additionalProperties": false, "properties": { "env": { "type": "object", @@ -100,6 +101,30 @@ "prefix" ] } + }, + "tools": { + "type": "object" + }, + "stdout": { + "type": "array", + "items": { + "type": "object", + "properties": { + "line": { + "type": "string" + }, + "match": { + "type": "string", + "enum": [ + "literal", + "re" + ] + } + }, + "required": [ + "line" + ] + } } } } -- cgit v1.1