cuelang.org/go@v0.13.0/encoding/jsonschema/testdata/external/tests/draft4/format.json (about) 1 [ 2 { 3 "description": "email format", 4 "schema": { 5 "format": "email" 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 }, 40 { 41 "description": "ipv4 format", 42 "schema": { 43 "format": "ipv4" 44 }, 45 "tests": [ 46 { 47 "description": "all string formats ignore integers", 48 "data": 12, 49 "valid": true 50 }, 51 { 52 "description": "all string formats ignore floats", 53 "data": 13.7, 54 "valid": true 55 }, 56 { 57 "description": "all string formats ignore objects", 58 "data": {}, 59 "valid": true 60 }, 61 { 62 "description": "all string formats ignore arrays", 63 "data": [], 64 "valid": true 65 }, 66 { 67 "description": "all string formats ignore booleans", 68 "data": false, 69 "valid": true 70 }, 71 { 72 "description": "all string formats ignore nulls", 73 "data": null, 74 "valid": true 75 } 76 ] 77 }, 78 { 79 "description": "ipv6 format", 80 "schema": { 81 "format": "ipv6" 82 }, 83 "tests": [ 84 { 85 "description": "all string formats ignore integers", 86 "data": 12, 87 "valid": true 88 }, 89 { 90 "description": "all string formats ignore floats", 91 "data": 13.7, 92 "valid": true 93 }, 94 { 95 "description": "all string formats ignore objects", 96 "data": {}, 97 "valid": true 98 }, 99 { 100 "description": "all string formats ignore arrays", 101 "data": [], 102 "valid": true 103 }, 104 { 105 "description": "all string formats ignore booleans", 106 "data": false, 107 "valid": true 108 }, 109 { 110 "description": "all string formats ignore nulls", 111 "data": null, 112 "valid": true 113 } 114 ] 115 }, 116 { 117 "description": "hostname format", 118 "schema": { 119 "format": "hostname" 120 }, 121 "tests": [ 122 { 123 "description": "all string formats ignore integers", 124 "data": 12, 125 "valid": true 126 }, 127 { 128 "description": "all string formats ignore floats", 129 "data": 13.7, 130 "valid": true 131 }, 132 { 133 "description": "all string formats ignore objects", 134 "data": {}, 135 "valid": true 136 }, 137 { 138 "description": "all string formats ignore arrays", 139 "data": [], 140 "valid": true 141 }, 142 { 143 "description": "all string formats ignore booleans", 144 "data": false, 145 "valid": true 146 }, 147 { 148 "description": "all string formats ignore nulls", 149 "data": null, 150 "valid": true 151 } 152 ] 153 }, 154 { 155 "description": "date-time format", 156 "schema": { 157 "format": "date-time" 158 }, 159 "tests": [ 160 { 161 "description": "all string formats ignore integers", 162 "data": 12, 163 "valid": true 164 }, 165 { 166 "description": "all string formats ignore floats", 167 "data": 13.7, 168 "valid": true 169 }, 170 { 171 "description": "all string formats ignore objects", 172 "data": {}, 173 "valid": true 174 }, 175 { 176 "description": "all string formats ignore arrays", 177 "data": [], 178 "valid": true 179 }, 180 { 181 "description": "all string formats ignore booleans", 182 "data": false, 183 "valid": true 184 }, 185 { 186 "description": "all string formats ignore nulls", 187 "data": null, 188 "valid": true 189 } 190 ] 191 }, 192 { 193 "description": "uri format", 194 "schema": { 195 "format": "uri" 196 }, 197 "tests": [ 198 { 199 "description": "all string formats ignore integers", 200 "data": 12, 201 "valid": true 202 }, 203 { 204 "description": "all string formats ignore floats", 205 "data": 13.7, 206 "valid": true 207 }, 208 { 209 "description": "all string formats ignore objects", 210 "data": {}, 211 "valid": true 212 }, 213 { 214 "description": "all string formats ignore arrays", 215 "data": [], 216 "valid": true 217 }, 218 { 219 "description": "all string formats ignore booleans", 220 "data": false, 221 "valid": true 222 }, 223 { 224 "description": "all string formats ignore nulls", 225 "data": null, 226 "valid": true 227 } 228 ] 229 } 230 ]