summaryrefslogtreecommitdiff
path: root/json/tests/draft2020-12/dependentRequired.json
diff options
context:
space:
mode:
Diffstat (limited to 'json/tests/draft2020-12/dependentRequired.json')
-rw-r--r--json/tests/draft2020-12/dependentRequired.json16
1 files changed, 13 insertions, 3 deletions
diff --git a/json/tests/draft2020-12/dependentRequired.json b/json/tests/draft2020-12/dependentRequired.json
index c817120..2baa38e 100644
--- a/json/tests/draft2020-12/dependentRequired.json
+++ b/json/tests/draft2020-12/dependentRequired.json
@@ -1,7 +1,10 @@
[
{
"description": "single dependency",
- "schema": {"dependentRequired": {"bar": ["foo"]}},
+ "schema": {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "dependentRequired": {"bar": ["foo"]}
+ },
"tests": [
{
"description": "neither",
@@ -42,7 +45,10 @@
},
{
"description": "empty dependents",
- "schema": {"dependentRequired": {"bar": []}},
+ "schema": {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "dependentRequired": {"bar": []}
+ },
"tests": [
{
"description": "empty object",
@@ -63,7 +69,10 @@
},
{
"description": "multiple dependents required",
- "schema": {"dependentRequired": {"quux": ["foo", "bar"]}},
+ "schema": {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "dependentRequired": {"quux": ["foo", "bar"]}
+ },
"tests": [
{
"description": "neither",
@@ -100,6 +109,7 @@
{
"description": "dependencies with escaped characters",
"schema": {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
"dependentRequired": {
"foo\nbar": ["foo\rbar"],
"foo\"bar": ["foo'bar"]