You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'[`string`]\n\\\n\\\nA list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.',
20
20
},
21
-
targetSpecs: OpenAPI3,
21
+
targetSpecs: [...OpenAPI2, ...OpenAPI3],
22
+
},
23
+
{
24
+
label: 'summary',
25
+
insertText: 'summary',
26
+
kind: 14,
27
+
format: CompletionFormat.QUOTED,
28
+
type: CompletionType.PROPERTY,
29
+
insertTextFormat: 2,
30
+
documentation: {
31
+
kind: 'markdown',
32
+
value:
33
+
'A short summary of what the operation does. For maximum readability in the swagger-ui, this field SHOULD be less than 120 characters.',
'A verbose explanation of the operation behavior. [GFM syntax](https://guides.github.com/features/mastering-markdown/#GitHub-flavored-markdown) can be used for rich text representation.',
'[External Documentation](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#externalDocumentationObject)\n\\\n\\\nAdditional external documentation for this operation.',
'Unique string used to identify the operation. The id MUST be unique among all operations described in the API. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is recommended to follow common programming naming conventions.',
'[`string`]\n\\\n\\\nA list of MIME types the operation can consume. This overrides the [`consumes`](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#swaggerConsumes) definition at the Swagger Object. An empty value MAY be used to clear the global definition. Value MUST be as described under [Mime Types](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#mimeTypes).',
159
+
},
160
+
targetSpecs: OpenAPI2,
161
+
},
162
+
{
163
+
label: 'produces',
164
+
insertText: 'produces',
165
+
kind: 14,
166
+
format: CompletionFormat.ARRAY,
167
+
type: CompletionType.PROPERTY,
168
+
insertTextFormat: 2,
169
+
documentation: {
170
+
kind: 'markdown',
171
+
value:
172
+
'[`string`]\n\\\n\\\nA list of MIME types the operation can produce. This overrides the [`produces`](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#swaggerProduces) definition at the Swagger Object. An empty value MAY be used to clear the global definition. Value MUST be as described under [Mime Types](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#mimeTypes).',
173
+
},
174
+
targetSpecs: OpenAPI2,
175
+
},
176
+
{
177
+
label: 'parameters',
178
+
insertText: 'parameters',
179
+
kind: 14,
180
+
format: CompletionFormat.ARRAY,
181
+
type: CompletionType.PROPERTY,
182
+
insertTextFormat: 2,
183
+
documentation: {
184
+
kind: 'markdown',
185
+
value:
186
+
'[[Parameter Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#parameterObject) | [Reference Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#referenceObject)]\n\\\n\\\nA list of parameters that are applicable for this operation. If a parameter is already defined at the [Path Item](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#pathItemParameters), the new definition will override it, but can never remove it. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a [name](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#parameterName) and [location](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#parameterIn). The list can use the [Reference Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#referenceObject) to link to parameters that are defined at the [Swagger Object\'s parameters](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#swaggerParameters). There can be one "body" parameter at most.',
'[Responses Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#responsesObject)\n\\\n\\\n**Required.** The list of possible responses as they are returned from executing this operation.',
'[`string`]\n\\\n\\\nThe transfer protocol for the operation. Values MUST be from the list: `"http"`, `"https"`, `"ws"`, `"wss"`. The value overrides the Swagger Object [`schemes`](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#swaggerSchemes) definition.',
'Declares this operation to be deprecated. Consumers SHOULD refrain from usage of the declared operation. Default value is `false`.',
340
+
'`boolean`\n\\\n\\\nDeclares this operation to be deprecated. Consumers SHOULD refrain from usage of the declared operation. Default value is `false`.',
341
+
},
342
+
targetSpecs: OpenAPI2,
343
+
},
344
+
{
345
+
label: 'deprecated',
346
+
insertText: 'deprecated',
347
+
kind: 14,
348
+
format: CompletionFormat.UNQUOTED,
349
+
type: CompletionType.PROPERTY,
350
+
insertTextFormat: 2,
351
+
documentation: {
352
+
kind: 'markdown',
353
+
value:
354
+
'`boolean`\n\\\n\\\nDeclares this operation to be deprecated. Consumers SHOULD refrain from usage of the declared operation. Default value is `false`.',
215
355
},
216
356
targetSpecs: OpenAPI3,
217
357
},
358
+
{
359
+
label: 'security',
360
+
insertText: 'security',
361
+
kind: 14,
362
+
format: CompletionFormat.ARRAY,
363
+
type: CompletionType.PROPERTY,
364
+
insertTextFormat: 2,
365
+
documentation: {
366
+
kind: 'markdown',
367
+
value:
368
+
'[[Security Requirement Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#serverObject)]\n\\\n\\\nA declaration of which security schemes are applied for this operation. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). This definition overrides any declared top-level [`security`](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#swaggerSecurity). To remove a top-level security declaration, an empty array can be used.',
0 commit comments