share/tests/draft2020-12/optional/cross-draft.json
raw| 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 | ] |