|
50 | 50 | "additionalItems": true
|
51 | 51 | },
|
52 | 52 | "info": {
|
53 |
| - "type": "object", |
54 | 53 | "description": "The object provides metadata about the API. The metadata can be used by the clients if needed.",
|
55 |
| - "required": [ |
56 |
| - "version", |
57 |
| - "title" |
58 |
| - ], |
59 |
| - "additionalProperties": false, |
60 |
| - "patternProperties": { |
61 |
| - "^x-[\\w\\d\\.\\x2d_]+$": { |
62 |
| - "$ref": "#/definitions/specificationExtension" |
63 |
| - } |
64 |
| - }, |
65 |
| - "properties": { |
66 |
| - "title": { |
67 |
| - "type": "string", |
68 |
| - "description": "A unique and precise title of the API." |
69 |
| - }, |
70 |
| - "version": { |
71 |
| - "type": "string", |
72 |
| - "description": "A semantic version number of the API." |
73 |
| - }, |
74 |
| - "description": { |
75 |
| - "type": "string", |
76 |
| - "description": "A longer description of the API. Should be different from the title. CommonMark is allowed." |
77 |
| - }, |
78 |
| - "termsOfService": { |
79 |
| - "type": "string", |
80 |
| - "description": "A URL to the Terms of Service for the API. MUST be in the format of a URL.", |
81 |
| - "format": "uri" |
82 |
| - }, |
83 |
| - "contact": { |
84 |
| - "$ref": "#/definitions/contact" |
85 |
| - }, |
86 |
| - "license": { |
87 |
| - "$ref": "#/definitions/license" |
88 |
| - }, |
89 |
| - "tags": { |
90 |
| - "type": "array", |
91 |
| - "description": "A list of tags for application API documentation control. Tags can be used for logical grouping of applications.", |
92 |
| - "items": { |
93 |
| - "oneOf": [ |
94 |
| - { |
95 |
| - "$ref": "#/definitions/Reference" |
96 |
| - }, |
97 |
| - { |
98 |
| - "$ref": "#/definitions/tag" |
99 |
| - } |
100 |
| - ] |
| 54 | + "allOf": [ |
| 55 | + { |
| 56 | + "type": "object", |
| 57 | + "required": [ |
| 58 | + "version", |
| 59 | + "title" |
| 60 | + ], |
| 61 | + "additionalProperties": false, |
| 62 | + "patternProperties": { |
| 63 | + "^x-[\\w\\d\\.\\x2d_]+$": { |
| 64 | + "$ref": "#/definitions/specificationExtension" |
| 65 | + } |
101 | 66 | },
|
102 |
| - "uniqueItems": true |
103 |
| - }, |
104 |
| - "externalDocs": { |
105 |
| - "oneOf": [ |
106 |
| - { |
107 |
| - "$ref": "#/definitions/Reference" |
| 67 | + "properties": { |
| 68 | + "title": { |
| 69 | + "type": "string", |
| 70 | + "description": "A unique and precise title of the API." |
108 | 71 | },
|
109 |
| - { |
110 |
| - "$ref": "#/definitions/externalDocs" |
| 72 | + "version": { |
| 73 | + "type": "string", |
| 74 | + "description": "A semantic version number of the API." |
| 75 | + }, |
| 76 | + "description": { |
| 77 | + "type": "string", |
| 78 | + "description": "A longer description of the API. Should be different from the title. CommonMark is allowed." |
| 79 | + }, |
| 80 | + "termsOfService": { |
| 81 | + "type": "string", |
| 82 | + "description": "A URL to the Terms of Service for the API. MUST be in the format of a URL.", |
| 83 | + "format": "uri" |
| 84 | + }, |
| 85 | + "contact": { |
| 86 | + "$ref": "#/definitions/contact" |
| 87 | + }, |
| 88 | + "license": { |
| 89 | + "$ref": "#/definitions/license" |
| 90 | + }, |
| 91 | + "tags": { |
| 92 | + "type": "array", |
| 93 | + "description": "A list of tags for application API documentation control. Tags can be used for logical grouping of applications.", |
| 94 | + "items": { |
| 95 | + "oneOf": [ |
| 96 | + { |
| 97 | + "$ref": "#/definitions/Reference" |
| 98 | + }, |
| 99 | + { |
| 100 | + "$ref": "#/definitions/tag" |
| 101 | + } |
| 102 | + ] |
| 103 | + }, |
| 104 | + "uniqueItems": true |
| 105 | + }, |
| 106 | + "externalDocs": { |
| 107 | + "oneOf": [ |
| 108 | + { |
| 109 | + "$ref": "#/definitions/Reference" |
| 110 | + }, |
| 111 | + { |
| 112 | + "$ref": "#/definitions/externalDocs" |
| 113 | + } |
| 114 | + ] |
111 | 115 | }
|
112 |
| - ] |
| 116 | + } |
| 117 | + }, |
| 118 | + { |
| 119 | + "$ref": "#/definitions/infoExtensions" |
113 | 120 | }
|
114 |
| - }, |
| 121 | + ], |
115 | 122 | "examples": [
|
116 | 123 | {
|
117 | 124 | "title": "AsyncAPI Sample App",
|
|
292 | 299 | }
|
293 | 300 | ]
|
294 | 301 | },
|
| 302 | + "infoExtensions": { |
| 303 | + "type": "object", |
| 304 | + "description": "The object that lists all the extensions of Info", |
| 305 | + "properties": { |
| 306 | + "x-x": { |
| 307 | + "$ref": "#/definitions/extensions-x-0.1.0-schema" |
| 308 | + } |
| 309 | + } |
| 310 | + }, |
| 311 | + "extensions-x-0.1.0-schema": { |
| 312 | + "type": "string", |
| 313 | + "description": "This extension allows you to provide the Twitter username of the account representing the team/company of the API.", |
| 314 | + "example": [ |
| 315 | + "sambhavgupta75", |
| 316 | + "AsyncAPISpec" |
| 317 | + ] |
| 318 | + }, |
295 | 319 | "servers": {
|
296 | 320 | "description": "An object representing multiple servers.",
|
297 | 321 | "type": "object",
|
|
0 commit comments