summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2021-10-20 10:18:25 -0400
committerJulian Berman <Julian@GrayVines.com>2021-10-20 10:18:25 -0400
commitd0dd0fe2af69218c9aef9c569fecb1947640b9ae (patch)
treea821bdf2e5070ba3b2bcaa67e1eca8179d40138b
parent7a3c828ad51cc1270d63b4aeb6d47e407d4ddcca (diff)
parentddef3b4a06be6f66dc1384e31a408ee7658bac1a (diff)
downloadjsonschema-d0dd0fe2af69218c9aef9c569fecb1947640b9ae.tar.gz
Merge commit 'ddef3b4a06be6f66dc1384e31a408ee7658bac1a'
* commit 'ddef3b4a06be6f66dc1384e31a408ee7658bac1a': Squashed 'json/' changes from ba3a90534..329efe59c
-rw-r--r--json/README.md10
-rw-r--r--json/tests/draft-next/dependentSchemas.json15
-rw-r--r--json/tests/draft2019-09/dependentSchemas.json15
-rw-r--r--json/tests/draft2020-12/dependentSchemas.json15
4 files changed, 52 insertions, 3 deletions
diff --git a/json/README.md b/json/README.md
index 63053d6..a00e38c 100644
--- a/json/README.md
+++ b/json/README.md
@@ -60,9 +60,13 @@ directory. This is:
## Coverage
-Drafts 07, 06, 04, and 03 should have full coverage, with tests for drafts 06,
-07, 2019-09 and 2020-12 being considered current and actively supported.
-Drafts 2019-09 and 2020-12 are almost fully covered.
+All JSON Schema specification releases should be well covered by this suite,
+including drafts 2020-12, 2019-09, 07, 06, 04 and 03. Additional coverage is
+always welcome, particularly for bugs encountered in real-world
+implementations.
+
+Drafts 04 and 03 are considered "frozen" in that less effort is put in to
+backport new tests to these versions.
Contributions are very welcome, especially from implementers as they add support
to their own implementations.
diff --git a/json/tests/draft-next/dependentSchemas.json b/json/tests/draft-next/dependentSchemas.json
index e7921d1..2ba1a75 100644
--- a/json/tests/draft-next/dependentSchemas.json
+++ b/json/tests/draft-next/dependentSchemas.json
@@ -36,6 +36,21 @@
"description": "wrong type both",
"data": {"foo": "quux", "bar": "quux"},
"valid": false
+ },
+ {
+ "description": "ignores arrays",
+ "data": ["bar"],
+ "valid": true
+ },
+ {
+ "description": "ignores strings",
+ "data": "foobar",
+ "valid": true
+ },
+ {
+ "description": "ignores other non-objects",
+ "data": 12,
+ "valid": true
}
]
},
diff --git a/json/tests/draft2019-09/dependentSchemas.json b/json/tests/draft2019-09/dependentSchemas.json
index e7921d1..2ba1a75 100644
--- a/json/tests/draft2019-09/dependentSchemas.json
+++ b/json/tests/draft2019-09/dependentSchemas.json
@@ -36,6 +36,21 @@
"description": "wrong type both",
"data": {"foo": "quux", "bar": "quux"},
"valid": false
+ },
+ {
+ "description": "ignores arrays",
+ "data": ["bar"],
+ "valid": true
+ },
+ {
+ "description": "ignores strings",
+ "data": "foobar",
+ "valid": true
+ },
+ {
+ "description": "ignores other non-objects",
+ "data": 12,
+ "valid": true
}
]
},
diff --git a/json/tests/draft2020-12/dependentSchemas.json b/json/tests/draft2020-12/dependentSchemas.json
index e7921d1..2ba1a75 100644
--- a/json/tests/draft2020-12/dependentSchemas.json
+++ b/json/tests/draft2020-12/dependentSchemas.json
@@ -36,6 +36,21 @@
"description": "wrong type both",
"data": {"foo": "quux", "bar": "quux"},
"valid": false
+ },
+ {
+ "description": "ignores arrays",
+ "data": ["bar"],
+ "valid": true
+ },
+ {
+ "description": "ignores strings",
+ "data": "foobar",
+ "valid": true
+ },
+ {
+ "description": "ignores other non-objects",
+ "data": 12,
+ "valid": true
}
]
},