cuelang.org/go@v0.13.0/encoding/jsonschema/testdata/external/tests/draft7/optional/cross-draft.json (about) 1 [ 2 { 3 "description": "refs to future drafts are processed as future drafts", 4 "schema": { 5 "type": "object", 6 "allOf": [ 7 { 8 "properties": { 9 "foo": true 10 } 11 }, 12 { 13 "$ref": "http://localhost:1234/draft2019-09/dependentRequired.json" 14 } 15 ] 16 }, 17 "skip": { 18 "v2": "extract error: cannot compile resulting schema: invalid import path: \"localhost:1234/draft2019-09/dependentRequired.json:dependentRequired\":\n generated.cue:1:8\n", 19 "v3": "extract error: cannot compile resulting schema: invalid import path: \"localhost:1234/draft2019-09/dependentRequired.json:dependentRequired\":\n generated.cue:1:8\n" 20 }, 21 "tests": [ 22 { 23 "description": "missing bar is invalid", 24 "comment": "if the implementation is not processing the $ref as a 2019-09 schema, this test will fail", 25 "data": { 26 "foo": "any value" 27 }, 28 "valid": false, 29 "skip": { 30 "v2": "could not compile schema", 31 "v3": "could not compile schema" 32 } 33 }, 34 { 35 "description": "present bar is valid", 36 "data": { 37 "foo": "any value", 38 "bar": "also any value" 39 }, 40 "valid": true, 41 "skip": { 42 "v2": "could not compile schema", 43 "v3": "could not compile schema" 44 } 45 } 46 ] 47 } 48 ]