diff options
Diffstat (limited to 'json/output-tests/draft-next/content/general.json')
-rw-r--r-- | json/output-tests/draft-next/content/general.json | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/json/output-tests/draft-next/content/general.json b/json/output-tests/draft-next/content/general.json new file mode 100644 index 0000000..27082ed --- /dev/null +++ b/json/output-tests/draft-next/content/general.json @@ -0,0 +1,43 @@ +[ + { + "description": "failed validation produces no annotations", + "schema": { + "$schema": "https://json-schema.org/draft/next/schema", + "$id": "https://json-schema.org/tests/content/draft-next/general/0", + "type": "string", + "readOnly": true + }, + "tests": [ + { + "description": "dropped annotations MAY appear in droppedAnnotations", + "data": 1, + "output": { + "list": { + "$id": "https://json-schema.org/tests/content/draft-next/general/0/tests/0/basic", + "$ref": "/draft/next/output/schema", + "properties": { + "details": { + "contains": { + "properties": { + "evaluationPath": {"const": ""}, + "schemaLocation": {"const": "https://json-schema.org/tests/content/draft-next/general/0"}, + "instanceLocation": {"const": ""}, + "annotations": false, + "droppedAnnotations": { + "properties": { + "readOnly": {"const": true} + }, + "required": ["readOnly"] + } + }, + "required": ["evaluationPath", "schemaLocation", "instanceLocation"] + } + } + }, + "required": ["details"] + } + } + } + ] + } +] |