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