Skip to content

Commit

Permalink
add draft 2020-12 -> draft 2019-09 test
Browse files Browse the repository at this point in the history
  • Loading branch information
gregsdennis committed Aug 14, 2022
1 parent c4ed16d commit 52eb279
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions remotes/draft2019-09/ignore-prefixItems.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$id": "http://localhost:1234/draft2019-09/ignore-prefixItems.json",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"prefixItems": [
{"type": "string"}
]
}
18 changes: 18 additions & 0 deletions tests/draft2020-12/optional/cross-draft.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[
{
"description": "refs to historic drafts are processed as historic drafts",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "array",
"$ref": "http://localhost:1234/draft2019-09/ignore-prefixItems.json"
},
"tests": [
{
"description": "first item not a string is valid",
"$comment": "if the implementation is not processing the $ref as a 2019-09 schema, this test will fail",
"data": [1, 2, 3],
"valid": true
}
]
}
]

0 comments on commit 52eb279

Please sign in to comment.