summaryrefslogtreecommitdiff
path: root/src/test/suite/output-tests/draft2020-12/content/general.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/suite/output-tests/draft2020-12/content/general.json')
-rw-r--r--src/test/suite/output-tests/draft2020-12/content/general.json34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/test/suite/output-tests/draft2020-12/content/general.json b/src/test/suite/output-tests/draft2020-12/content/general.json
new file mode 100644
index 0000000..1f2b370
--- /dev/null
+++ b/src/test/suite/output-tests/draft2020-12/content/general.json
@@ -0,0 +1,34 @@
+[
+ {
+ "description": "failed validation produces no annotations",
+ "schema": {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "$id": "https://json-schema.org/tests/content/draft2020-12/general/0",
+ "type": "string",
+ "readOnly": true
+ },
+ "tests": [
+ {
+ "description": "readOnly annotation is dropped",
+ "data": 1,
+ "output": {
+ "basic": {
+ "$id": "https://json-schema.org/tests/content/draft2020-12/general/0/tests/0/basic",
+ "$ref": "/draft/2020-12/output/schema",
+ "properties": {
+ "errors": {
+ "items": {
+ "properties": {
+ "annotation": false
+ }
+ }
+ },
+ "annotations": false
+ },
+ "required": ["errors"]
+ }
+ }
+ }
+ ]
+ }
+]