github.com/kaptinlin/jsonschema@v0.4.6/testdata/JSON-Schema-Test-Suite/tests/draft2019-09/optional/cross-draft.json (about) 1 [ 2 { 3 "description": "refs to future drafts are processed as future drafts", 4 "schema": { 5 "$schema": "https://json-schema.org/draft/2019-09/schema", 6 "type": "array", 7 "$ref": "http://localhost:1234/draft2020-12/prefixItems.json" 8 }, 9 "tests": [ 10 { 11 "description": "first item not a string is invalid", 12 "comment": "if the implementation is not processing the $ref as a 2020-12 schema, this test will fail", 13 "data": [1, 2, 3], 14 "valid": false 15 }, 16 { 17 "description": "first item is a string is valid", 18 "data": ["a string", 1, 2, 3], 19 "valid": true 20 } 21 ] 22 }, 23 { 24 "description": "refs to historic drafts are processed as historic drafts", 25 "schema": { 26 "type": "object", 27 "allOf": [ 28 { "properties": { "foo": true } }, 29 { "$ref": "http://localhost:1234/draft7/ignore-dependentRequired.json" } 30 ] 31 }, 32 "tests": [ 33 { 34 "description": "missing bar is valid", 35 "comment": "if the implementation is not processing the $ref as a draft 7 schema, this test will fail", 36 "data": {"foo": "any value"}, 37 "valid": true 38 } 39 ] 40 } 41 ]