Skip to content

Commit 47363af

Browse files
committed
fix: add 'schema' item to OAS3.1 mediaType completion
1 parent c46ae6a commit 47363af

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/apidom-ls/src/config/openapi/media-type/completion.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,20 @@ const completion: ApidomCompletionItem[] = [
2424
{ namespace: 'openapi', version: '3.0.3' },
2525
],
2626
},
27+
{
28+
label: 'schema',
29+
insertText: 'schema',
30+
kind: 14,
31+
format: CompletionFormat.OBJECT,
32+
type: CompletionType.PROPERTY,
33+
insertTextFormat: 2,
34+
documentation: {
35+
kind: 'markdown',
36+
value:
37+
'[Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#schemaObject) | [Reference Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#referenceObject)\n\\\n\\\nThe schema defining the content of the request, response, or parameter.',
38+
},
39+
targetSpecs: [{ namespace: 'openapi', version: '3.1.0' }],
40+
},
2741
{
2842
label: 'example',
2943
insertText: 'example',

0 commit comments

Comments
 (0)