|
4 | 4 |
|
5 | 5 | "type": "object", |
6 | 6 | "required": [ "swagger", "info", "paths" ], |
7 | | - |
| 7 | + "additionalProperties": false, |
| 8 | + "patternProperties": { |
| 9 | + "^x-": { |
| 10 | + "$ref": "#/definitions/vendorExtension" |
| 11 | + } |
| 12 | + }, |
| 13 | + "properties": { |
| 14 | + "swagger": { |
| 15 | + "type": "number", |
| 16 | + "enum": [ 2.0 ], |
| 17 | + "description": "The Swagger version of this document." |
| 18 | + }, |
| 19 | + "info": { |
| 20 | + "$ref": "#/definitions/info" |
| 21 | + }, |
| 22 | + "externalDocs": { |
| 23 | + "$ref": "#/definitions/externalDocs" |
| 24 | + }, |
| 25 | + "host": { |
| 26 | + "type": "string", |
| 27 | + "format": "uri", |
| 28 | + "pattern": "^((?!\\:\/\/).)*$", |
| 29 | + "description": "The fully qualified URI to the host of the API." |
| 30 | + }, |
| 31 | + "basePath": { |
| 32 | + "type": "string", |
| 33 | + "pattern": "^/", |
| 34 | + "description": "The base path to the API. Example: '/api'." |
| 35 | + }, |
| 36 | + "schemes": { |
| 37 | + "type": "array", |
| 38 | + "description": "The transfer protocol of the API.", |
| 39 | + "items": { |
| 40 | + "type": "string", |
| 41 | + "enum": [ "http", "https", "ws", "wss" ] |
| 42 | + } |
| 43 | + }, |
| 44 | + "consumes": { |
| 45 | + "type": "array", |
| 46 | + "description": "A list of MIME types accepted by the API.", |
| 47 | + "items": { |
| 48 | + "$ref": "#/definitions/mimeType" |
| 49 | + } |
| 50 | + }, |
| 51 | + "produces": { |
| 52 | + "type": "array", |
| 53 | + "description": "A list of MIME types the API can produce.", |
| 54 | + "items": { |
| 55 | + "$ref": "#/definitions/mimeType" |
| 56 | + } |
| 57 | + }, |
| 58 | + "paths": { |
| 59 | + "type": "object", |
| 60 | + "description": "Relative paths to the individual endpoints. They must be relative to the 'basePath'.", |
| 61 | + "patternProperties": { |
| 62 | + "^x-": { |
| 63 | + "$ref": "#/definitions/vendorExtension" |
| 64 | + }, |
| 65 | + "^/.*[^\/]$": { |
| 66 | + "$ref": "#/definitions/pathItem" |
| 67 | + } |
| 68 | + }, |
| 69 | + "additionalProperties": false |
| 70 | + }, |
| 71 | + "definitions": { |
| 72 | + "type": "object", |
| 73 | + "description": "One or more JSON objects describing the schemas being consumed and produced by the API.", |
| 74 | + "additionalProperties": { "$ref": "#/definitions/schema" }, |
| 75 | + }, |
| 76 | + "parameters": { |
| 77 | + "type": "object", |
| 78 | + "description": "One or more JSON representations for parameters", |
| 79 | + "additionalProperties": { "$ref": "#/definitions/parameter" } |
| 80 | + }, |
| 81 | + "security": { |
| 82 | + "$ref": "#/definitions/security" |
| 83 | + }, |
| 84 | + "tags": { |
| 85 | + "type": "array", |
| 86 | + "items": { |
| 87 | + "$ref": "#/definitions/tag" |
| 88 | + } |
| 89 | + } |
| 90 | + }, |
8 | 91 | "definitions": { |
9 | 92 | "externalDocs": { |
10 | 93 | "type": "object", |
|
262 | 345 | "properties": { |
263 | 346 | "type": { |
264 | 347 | "type": "string", |
265 | | - "enum": [ "string", "number", "boolean", "integer", "array" ] |
| 348 | + "enum": [ "string", "number", "boolean", "integer", "array", "file" ] |
266 | 349 | }, |
267 | 350 | "format": { |
268 | 351 | "type": "string" |
|
310 | 393 | }, |
311 | 394 | "type": { |
312 | 395 | "type": "string", |
313 | | - "enum": [ "string", "number", "boolean", "integer", "array", "file" ] |
| 396 | + "enum": [ "string", "number", "boolean", "integer", "array" ] |
314 | 397 | }, |
315 | 398 | "format": { |
316 | 399 | "type": "string" |
|
448 | 531 | } |
449 | 532 | } |
450 | 533 | } |
451 | | - }, |
452 | | - "additionalProperties": false, |
453 | | - "patternProperties": { |
454 | | - "^x-": { |
455 | | - "$ref": "#/definitions/vendorExtension" |
456 | | - } |
457 | | - }, |
458 | | - "properties": { |
459 | | - "swagger": { |
460 | | - "type": "number", |
461 | | - "enum": [ 2.0 ], |
462 | | - "description": "The Swagger version of this document." |
463 | | - }, |
464 | | - "info": { |
465 | | - "$ref": "#/definitions/info" |
466 | | - }, |
467 | | - "externalDocs": { |
468 | | - "$ref": "#/definitions/externalDocs" |
469 | | - }, |
470 | | - "host": { |
471 | | - "type": "string", |
472 | | - "format": "uri", |
473 | | - "pattern": "^((?!\\:\/\/).)*$", |
474 | | - "description": "The fully qualified URI to the host of the API." |
475 | | - }, |
476 | | - "basePath": { |
477 | | - "type": "string", |
478 | | - "pattern": "^/", |
479 | | - "description": "The base path to the API. Example: '/api'." |
480 | | - }, |
481 | | - "schemes": { |
482 | | - "type": "array", |
483 | | - "description": "The transfer protocol of the API.", |
484 | | - "items": { |
485 | | - "type": "string", |
486 | | - "enum": [ "http", "https", "ws", "wss" ] |
487 | | - } |
488 | | - }, |
489 | | - "consumes": { |
490 | | - "type": "array", |
491 | | - "description": "A list of MIME types accepted by the API.", |
492 | | - "items": { |
493 | | - "$ref": "#/definitions/mimeType" |
494 | | - } |
495 | | - }, |
496 | | - "produces": { |
497 | | - "type": "array", |
498 | | - "description": "A list of MIME types the API can produce.", |
499 | | - "items": { |
500 | | - "$ref": "#/definitions/mimeType" |
501 | | - } |
502 | | - }, |
503 | | - "paths": { |
504 | | - "type": "object", |
505 | | - "description": "Relative paths to the individual endpoints. They must be relative to the 'basePath'.", |
506 | | - "patternProperties": { |
507 | | - "^x-": { |
508 | | - "$ref": "#/definitions/vendorExtension" |
509 | | - }, |
510 | | - "^/.*[^\/]$": { |
511 | | - "$ref": "#/definitions/pathItem" |
512 | | - } |
513 | | - }, |
514 | | - "additionalProperties": false |
515 | | - }, |
516 | | - "definitions": { |
517 | | - "type": "object", |
518 | | - "description": "One or more JSON objects describing the schemas being consumed and produced by the API.", |
519 | | - "additionalProperties": { |
520 | | - "oneOf": [ |
521 | | - { "$ref": "#/definitions/schema" }, |
522 | | - { "$ref": "#/definitions/parameter" } |
523 | | - ] |
524 | | - } |
525 | | - }, |
526 | | - "security": { |
527 | | - "$ref": "#/definitions/security" |
528 | | - }, |
529 | | - "tags": { |
530 | | - "type": "array", |
531 | | - "items": { |
532 | | - "$ref": "#/definitions/tag" |
533 | | - } |
534 | | - } |
535 | 534 | } |
536 | 535 | } |
0 commit comments