-
-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add draft 2020-12 -> draft 2019-09 test
- Loading branch information
1 parent
c4ed16d
commit 52eb279
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
] | ||
} | ||
] |