Skip to content

Commit dab94fa

Browse files
committed
add draft 7 -> draft 2019-09 test
1 parent dfcea62 commit dab94fa

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$id": "http://localhost:1234/draft2019-09/dependentRequired.json",
3+
"$schema": "https://json-schema.org/draft/2019-09/schema",
4+
"dependentRequired": {
5+
"foo": ["bar"]
6+
}
7+
}
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[
2+
{
3+
"description": "refs to future drafts are processed as future drafts",
4+
"schema": {
5+
"type": "object",
6+
"allOf": [
7+
{ "properties": { "foo": true } },
8+
{ "$ref": "http://localhost:1234/draft2019-09/dependentRequired.json" }
9+
]
10+
},
11+
"tests": [
12+
{
13+
"description": "missing bar is invalid",
14+
"data": {"foo": "any value"},
15+
"valid": false
16+
},
17+
{
18+
"description": "present bar is valid",
19+
"data": {"foo": "any value", "bar": "also any value"},
20+
"valid": true
21+
}
22+
]
23+
}
24+
]

0 commit comments

Comments
 (0)