diff options
Diffstat (limited to 'tests/draft2020-12/optional/cross-draft.json')
-rw-r--r-- | tests/draft2020-12/optional/cross-draft.json | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/draft2020-12/optional/cross-draft.json b/tests/draft2020-12/optional/cross-draft.json new file mode 100644 index 0000000..5113bd6 --- /dev/null +++ b/tests/draft2020-12/optional/cross-draft.json @@ -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 + } + ] + } +] |