diff options
author | Julian Berman <Julian@GrayVines.com> | 2019-07-26 07:37:24 -0400 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2019-07-26 07:37:24 -0400 |
commit | a39ed5a8254f01e9c5e9c38daac965adb54847a3 (patch) | |
tree | 1b645461f5679ec8b8daf62b265a88951be079e5 /json/test-schema.json | |
parent | e4fa34f6517895a81e5ba7e648dc0796f25f9b21 (diff) | |
parent | 2024cbfe74024a1ded9daa679b218fe3255b6635 (diff) | |
download | jsonschema-a39ed5a8254f01e9c5e9c38daac965adb54847a3.tar.gz |
Merge commit '2024cbfe74024a1ded9daa679b218fe3255b6635'
* commit '2024cbfe74024a1ded9daa679b218fe3255b6635':
Squashed 'json/' changes from 812ba486..c09f995c
Diffstat (limited to 'json/test-schema.json')
-rw-r--r-- | json/test-schema.json | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/json/test-schema.json b/json/test-schema.json index 547c5c2..670d280 100644 --- a/json/test-schema.json +++ b/json/test-schema.json @@ -1,5 +1,27 @@ { "$schema": "http://json-schema.org/draft-04/schema#", + "definitions": { + "outputItem": { + "type": "object", + "properties": { + "valid": {"type": "boolean"}, + "keywordLocation": {"type": "string"}, + "absoluteKeywordLocation": { + "type": "string", + "format": "uri" + }, + "instanceLocation": {"type": "string"}, + "annotations": { + "type": "array", + "items": {"$ref": "#/definitions/outputItem"} + }, + "errors": { + "type": "array", + "items": {"$ref": "#/definitions/outputItem"} + } + } + } + }, "type": "array", "items": { "type": "object", @@ -15,7 +37,16 @@ "properties": { "description": {"type": "string"}, "data": {}, - "valid": {"type": "boolean"} + "valid": {"type": "boolean"}, + "output": { + "type": "object", + "properties": { + "basic": {"$ref": "#/definitions/outputItem"}, + "detailed": {"$ref": "#/definitions/outputItem"}, + "verbose": {"$ref": "#/definitions/outputItem"} + }, + "required": ["basic", "detailed", "verbose"] + } }, "additionalProperties": false }, |