Skip to content

Commit 8dda533

Browse files
authored
feat(ls): provide OpenAPI 3.1.0 completion rules for XML object (#2171)
1 parent a4fb397 commit 8dda533

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/apidom-ls/src/config/openapi/xml/completion.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,20 @@ const completion: ApidomCompletionItem[] = [
4949
{ namespace: 'openapi', version: '3.0.3' },
5050
],
5151
},
52+
{
53+
label: 'prefix',
54+
insertText: 'prefix ',
55+
kind: 14,
56+
format: CompletionFormat.QUOTED,
57+
type: CompletionType.PROPERTY,
58+
insertTextFormat: 2,
59+
documentation: {
60+
kind: 'markdown',
61+
value:
62+
'The prefix to be used for the [name](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#xmlName).',
63+
},
64+
targetSpecs: [{ namespace: 'openapi', version: '3.1.0' }],
65+
},
5266
{
5367
label: 'attribute',
5468
insertText: 'attribute ',

0 commit comments

Comments
 (0)