github.com/alecthomas/jsonschema@v0.0.0-20220216202328-9eeeec9d044b/fixtures/no_reference.json (about) 1 { 2 "required": [ 3 "some_base_property", 4 "some_base_property_yaml", 5 "grand", 6 "SomeUntaggedBaseProperty", 7 "PublicNonExported", 8 "id", 9 "name", 10 "password", 11 "TestFlag", 12 "age", 13 "email", 14 "Baz", 15 "color", 16 "roles", 17 "raw" 18 ], 19 "properties": { 20 "some_base_property": { 21 "type": "integer" 22 }, 23 "some_base_property_yaml": { 24 "type": "integer" 25 }, 26 "grand": { 27 "required": [ 28 "family_name" 29 ], 30 "properties": { 31 "family_name": { 32 "type": "string" 33 } 34 }, 35 "additionalProperties": false, 36 "type": "object" 37 }, 38 "SomeUntaggedBaseProperty": { 39 "type": "boolean" 40 }, 41 "PublicNonExported": { 42 "type": "integer" 43 }, 44 "id": { 45 "type": "integer" 46 }, 47 "name": { 48 "maxLength": 20, 49 "minLength": 1, 50 "pattern": ".*", 51 "type": "string", 52 "title": "the name", 53 "description": "this is a property", 54 "default": "alex", 55 "examples": [ 56 "joe", 57 "lucy" 58 ], 59 "readOnly": true 60 }, 61 "password": { 62 "type": "string", 63 "writeOnly": true 64 }, 65 "friends": { 66 "items": { 67 "type": "integer" 68 }, 69 "type": "array", 70 "description": "list of IDs, omitted when empty" 71 }, 72 "tags": { 73 "patternProperties": { 74 ".*": { 75 "additionalProperties": true 76 } 77 }, 78 "type": "object" 79 }, 80 "TestFlag": { 81 "type": "boolean" 82 }, 83 "birth_date": { 84 "type": "string", 85 "format": "date-time" 86 }, 87 "website": { 88 "type": "string", 89 "format": "uri" 90 }, 91 "network_address": { 92 "type": "string", 93 "format": "ipv4" 94 }, 95 "photo": { 96 "type": "string", 97 "media": { 98 "binaryEncoding": "base64" 99 } 100 }, 101 "photo2": { 102 "type": "string", 103 "media": { 104 "binaryEncoding": "base64" 105 } 106 }, 107 "feeling": { 108 "oneOf": [ 109 { 110 "type": "string" 111 }, 112 { 113 "type": "integer" 114 } 115 ] 116 }, 117 "age": { 118 "maximum": 120, 119 "exclusiveMaximum": true, 120 "minimum": 18, 121 "exclusiveMinimum": true, 122 "type": "integer" 123 }, 124 "email": { 125 "type": "string", 126 "format": "email" 127 }, 128 "Baz": { 129 "type": "string", 130 "foo": [ 131 "bar", 132 "bar1" 133 ], 134 "hello": "world" 135 }, 136 "color": { 137 "enum": [ 138 "red", 139 "green", 140 "blue" 141 ], 142 "type": "string" 143 }, 144 "rank": { 145 "enum": [ 146 1, 147 2, 148 3 149 ], 150 "type": "integer" 151 }, 152 "mult": { 153 "enum": [ 154 1, 155 1.5, 156 2 157 ], 158 "type": "number" 159 }, 160 "roles": { 161 "items": { 162 "enum": [ 163 "admin", 164 "moderator", 165 "user" 166 ], 167 "type": "string" 168 }, 169 "type": "array" 170 }, 171 "priorities": { 172 "items": { 173 "enum": [ 174 -1, 175 0, 176 1 177 ], 178 "type": "integer" 179 }, 180 "type": "array" 181 }, 182 "offsets": { 183 "items": { 184 "enum": [ 185 1.570796, 186 3.141592, 187 6.283185 188 ], 189 "type": "number" 190 }, 191 "type": "array" 192 }, 193 "raw": { 194 "additionalProperties": true 195 } 196 }, 197 "additionalProperties": false, 198 "type": "object", 199 "definitions": { 200 "GrandfatherType": { 201 "required": [ 202 "family_name" 203 ], 204 "properties": { 205 "family_name": { 206 "type": "string" 207 } 208 }, 209 "additionalProperties": false, 210 "type": "object" 211 }, 212 "TestUser": { 213 "required": [ 214 "some_base_property", 215 "some_base_property_yaml", 216 "grand", 217 "SomeUntaggedBaseProperty", 218 "PublicNonExported", 219 "id", 220 "name", 221 "password", 222 "TestFlag", 223 "age", 224 "email", 225 "Baz", 226 "color", 227 "roles", 228 "raw" 229 ], 230 "properties": { 231 "some_base_property": { 232 "type": "integer" 233 }, 234 "some_base_property_yaml": { 235 "type": "integer" 236 }, 237 "grand": { 238 "required": [ 239 "family_name" 240 ], 241 "properties": { 242 "family_name": { 243 "type": "string" 244 } 245 }, 246 "additionalProperties": false, 247 "type": "object" 248 }, 249 "SomeUntaggedBaseProperty": { 250 "type": "boolean" 251 }, 252 "PublicNonExported": { 253 "type": "integer" 254 }, 255 "id": { 256 "type": "integer" 257 }, 258 "name": { 259 "maxLength": 20, 260 "minLength": 1, 261 "pattern": ".*", 262 "type": "string", 263 "title": "the name", 264 "description": "this is a property", 265 "default": "alex", 266 "examples": [ 267 "joe", 268 "lucy" 269 ], 270 "readOnly": true 271 }, 272 "password": { 273 "type": "string", 274 "writeOnly": true 275 }, 276 "friends": { 277 "items": { 278 "type": "integer" 279 }, 280 "type": "array", 281 "description": "list of IDs, omitted when empty" 282 }, 283 "tags": { 284 "patternProperties": { 285 ".*": { 286 "additionalProperties": true 287 } 288 }, 289 "type": "object" 290 }, 291 "TestFlag": { 292 "type": "boolean" 293 }, 294 "birth_date": { 295 "type": "string", 296 "format": "date-time" 297 }, 298 "website": { 299 "type": "string", 300 "format": "uri" 301 }, 302 "network_address": { 303 "type": "string", 304 "format": "ipv4" 305 }, 306 "photo": { 307 "type": "string", 308 "media": { 309 "binaryEncoding": "base64" 310 } 311 }, 312 "photo2": { 313 "type": "string", 314 "media": { 315 "binaryEncoding": "base64" 316 } 317 }, 318 "feeling": { 319 "oneOf": [ 320 { 321 "type": "string" 322 }, 323 { 324 "type": "integer" 325 } 326 ] 327 }, 328 "age": { 329 "maximum": 120, 330 "exclusiveMaximum": true, 331 "minimum": 18, 332 "exclusiveMinimum": true, 333 "type": "integer" 334 }, 335 "email": { 336 "type": "string", 337 "format": "email" 338 }, 339 "Baz": { 340 "type": "string", 341 "foo": [ 342 "bar", 343 "bar1" 344 ], 345 "hello": "world" 346 }, 347 "color": { 348 "enum": [ 349 "red", 350 "green", 351 "blue" 352 ], 353 "type": "string" 354 }, 355 "rank": { 356 "enum": [ 357 1, 358 2, 359 3 360 ], 361 "type": "integer" 362 }, 363 "mult": { 364 "enum": [ 365 1, 366 1.5, 367 2 368 ], 369 "type": "number" 370 }, 371 "roles": { 372 "items": { 373 "enum": [ 374 "admin", 375 "moderator", 376 "user" 377 ], 378 "type": "string" 379 }, 380 "type": "array" 381 }, 382 "priorities": { 383 "items": { 384 "enum": [ 385 -1, 386 0, 387 1 388 ], 389 "type": "integer" 390 }, 391 "type": "array" 392 }, 393 "offsets": { 394 "items": { 395 "enum": [ 396 1.570796, 397 3.141592, 398 6.283185 399 ], 400 "type": "number" 401 }, 402 "type": "array" 403 }, 404 "raw": { 405 "additionalProperties": true 406 } 407 }, 408 "additionalProperties": false, 409 "type": "object" 410 } 411 } 412 }