cuelang.org/go@v0.13.0/encoding/jsonschema/testdata/external/tests/draft2020-12/vocabulary.json (about) 1 [ 2 { 3 "description": "schema that uses custom metaschema with with no validation vocabulary", 4 "schema": { 5 "$id": "https://schema/using/no/validation", 6 "$schema": "http://localhost:1234/draft2020-12/metaschema-no-validation.json", 7 "properties": { 8 "badProperty": false, 9 "numberProperty": { 10 "minimum": 10 11 } 12 } 13 }, 14 "skip": { 15 "v2": "extract error: invalid $schema URL \"http://localhost:1234/draft2020-12/metaschema-no-validation.json\": $schema URI not recognized (and 1 more errors)", 16 "v3": "extract error: invalid $schema URL \"http://localhost:1234/draft2020-12/metaschema-no-validation.json\": $schema URI not recognized (and 1 more errors)" 17 }, 18 "tests": [ 19 { 20 "description": "applicator vocabulary still works", 21 "data": { 22 "badProperty": "this property should not exist" 23 }, 24 "valid": false, 25 "skip": { 26 "v2": "could not compile schema", 27 "v3": "could not compile schema" 28 } 29 }, 30 { 31 "description": "no validation: valid number", 32 "data": { 33 "numberProperty": 20 34 }, 35 "valid": true, 36 "skip": { 37 "v2": "could not compile schema", 38 "v3": "could not compile schema" 39 } 40 }, 41 { 42 "description": "no validation: invalid number, but it still validates", 43 "data": { 44 "numberProperty": 1 45 }, 46 "valid": true, 47 "skip": { 48 "v2": "could not compile schema", 49 "v3": "could not compile schema" 50 } 51 } 52 ] 53 }, 54 { 55 "description": "ignore unrecognized optional vocabulary", 56 "schema": { 57 "$schema": "http://localhost:1234/draft2020-12/metaschema-optional-vocabulary.json", 58 "type": "number" 59 }, 60 "skip": { 61 "v2": "extract error: invalid $schema URL \"http://localhost:1234/draft2020-12/metaschema-optional-vocabulary.json\": $schema URI not recognized", 62 "v3": "extract error: invalid $schema URL \"http://localhost:1234/draft2020-12/metaschema-optional-vocabulary.json\": $schema URI not recognized" 63 }, 64 "tests": [ 65 { 66 "description": "string value", 67 "data": "foobar", 68 "valid": false, 69 "skip": { 70 "v2": "could not compile schema", 71 "v3": "could not compile schema" 72 } 73 }, 74 { 75 "description": "number value", 76 "data": 20, 77 "valid": true, 78 "skip": { 79 "v2": "could not compile schema", 80 "v3": "could not compile schema" 81 } 82 } 83 ] 84 } 85 ]