cuelang.org/go@v0.13.0/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/relative-json-pointer.json (about) 1 [ 2 { 3 "description": "validation of Relative JSON Pointers (RJP)", 4 "schema": { 5 "$schema": "https://json-schema.org/draft/2020-12/schema", 6 "format": "relative-json-pointer" 7 }, 8 "tests": [ 9 { 10 "description": "all string formats ignore integers", 11 "data": 12, 12 "valid": true 13 }, 14 { 15 "description": "all string formats ignore floats", 16 "data": 13.7, 17 "valid": true 18 }, 19 { 20 "description": "all string formats ignore objects", 21 "data": {}, 22 "valid": true 23 }, 24 { 25 "description": "all string formats ignore arrays", 26 "data": [], 27 "valid": true 28 }, 29 { 30 "description": "all string formats ignore booleans", 31 "data": false, 32 "valid": true 33 }, 34 { 35 "description": "all string formats ignore nulls", 36 "data": null, 37 "valid": true 38 }, 39 { 40 "description": "a valid upwards RJP", 41 "data": "1", 42 "valid": true 43 }, 44 { 45 "description": "a valid downwards RJP", 46 "data": "0/foo/bar", 47 "valid": true 48 }, 49 { 50 "description": "a valid up and then down RJP, with array index", 51 "data": "2/0/baz/1/zip", 52 "valid": true 53 }, 54 { 55 "description": "a valid RJP taking the member or index name", 56 "data": "0#", 57 "valid": true 58 }, 59 { 60 "description": "an invalid RJP that is a valid JSON Pointer", 61 "data": "/foo/bar", 62 "valid": false, 63 "skip": { 64 "v2": "unexpected success", 65 "v3": "unexpected success" 66 } 67 }, 68 { 69 "description": "negative prefix", 70 "data": "-1/foo/bar", 71 "valid": false, 72 "skip": { 73 "v2": "unexpected success", 74 "v3": "unexpected success" 75 } 76 }, 77 { 78 "description": "explicit positive prefix", 79 "data": "+1/foo/bar", 80 "valid": false, 81 "skip": { 82 "v2": "unexpected success", 83 "v3": "unexpected success" 84 } 85 }, 86 { 87 "description": "## is not a valid json-pointer", 88 "data": "0##", 89 "valid": false, 90 "skip": { 91 "v2": "unexpected success", 92 "v3": "unexpected success" 93 } 94 }, 95 { 96 "description": "zero cannot be followed by other digits, plus json-pointer", 97 "data": "01/a", 98 "valid": false, 99 "skip": { 100 "v2": "unexpected success", 101 "v3": "unexpected success" 102 } 103 }, 104 { 105 "description": "zero cannot be followed by other digits, plus octothorpe", 106 "data": "01#", 107 "valid": false, 108 "skip": { 109 "v2": "unexpected success", 110 "v3": "unexpected success" 111 } 112 }, 113 { 114 "description": "empty string", 115 "data": "", 116 "valid": false, 117 "skip": { 118 "v2": "unexpected success", 119 "v3": "unexpected success" 120 } 121 }, 122 { 123 "description": "multi-digit integer prefix", 124 "data": "120/foo/bar", 125 "valid": true 126 } 127 ] 128 } 129 ]