Skip to content

Commit 52eb279

Browse files
committed
add draft 2020-12 -> draft 2019-09 test
1 parent c4ed16d commit 52eb279

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$id": "http://localhost:1234/draft2019-09/ignore-prefixItems.json",
3+
"$schema": "https://json-schema.org/draft/2019-09/schema",
4+
"prefixItems": [
5+
{"type": "string"}
6+
]
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[
2+
{
3+
"description": "refs to historic drafts are processed as historic drafts",
4+
"schema": {
5+
"$schema": "https://json-schema.org/draft/2020-12/schema",
6+
"type": "array",
7+
"$ref": "http://localhost:1234/draft2019-09/ignore-prefixItems.json"
8+
},
9+
"tests": [
10+
{
11+
"description": "first item not a string is valid",
12+
"$comment": "if the implementation is not processing the $ref as a 2019-09 schema, this test will fail",
13+
"data": [1, 2, 3],
14+
"valid": true
15+
}
16+
]
17+
}
18+
]

0 commit comments

Comments
 (0)