cuelang.org/go@v0.13.0/encoding/jsonschema/testdata/external/tests/draft2020-12/defs.json (about) 1 [ 2 { 3 "description": "validate definition against metaschema", 4 "schema": { 5 "$schema": "https://json-schema.org/draft/2020-12/schema", 6 "$ref": "https://json-schema.org/draft/2020-12/schema" 7 }, 8 "skip": { 9 "v2": "extract error: cannot compile resulting schema: package \"json-schema.org/draft/2020-12/schema\" imported but not defined in :\n generated.cue:1:8\n", 10 "v3": "extract error: cannot compile resulting schema: package \"json-schema.org/draft/2020-12/schema\" imported but not defined in :\n generated.cue:1:8\n" 11 }, 12 "tests": [ 13 { 14 "description": "valid definition schema", 15 "data": { 16 "$defs": { 17 "foo": { 18 "type": "integer" 19 } 20 } 21 }, 22 "valid": true, 23 "skip": { 24 "v2": "could not compile schema", 25 "v3": "could not compile schema" 26 } 27 }, 28 { 29 "description": "invalid definition schema", 30 "data": { 31 "$defs": { 32 "foo": { 33 "type": 1 34 } 35 } 36 }, 37 "valid": false, 38 "skip": { 39 "v2": "could not compile schema", 40 "v3": "could not compile schema" 41 } 42 } 43 ] 44 } 45 ]