diff --git a/packages/apidom-ls/src/config/openapi/server/completion.ts b/packages/apidom-ls/src/config/openapi/server/completion.ts index e32b6d1c6f..adcf8537e1 100644 --- a/packages/apidom-ls/src/config/openapi/server/completion.ts +++ b/packages/apidom-ls/src/config/openapi/server/completion.ts @@ -50,6 +50,20 @@ const completion: ApidomCompletionItem[] = [ { namespace: 'openapi', version: '3.0.3' }, ], }, + { + label: 'variables', + insertText: 'variables', + kind: 14, + format: CompletionFormat.OBJECT, + type: CompletionType.PROPERTY, + insertTextFormat: 2, + documentation: { + kind: 'markdown', + value: + "Map[`string`, [Server Variable Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#serverVariableObject)]\n\\\n\\\nA map between a variable name and its value. The value is used for substitution in the server's URL template.", + }, + targetSpecs: [{ namespace: 'openapi', version: '3.1.0' }], + }, ]; export default completion; diff --git a/packages/apidom-ls/src/config/openapi/server/lint/variables--values-type.ts b/packages/apidom-ls/src/config/openapi/server/lint/variables--values-type.ts index 7f3d34893e..1c373aafca 100644 --- a/packages/apidom-ls/src/config/openapi/server/lint/variables--values-type.ts +++ b/packages/apidom-ls/src/config/openapi/server/lint/variables--values-type.ts @@ -4,7 +4,7 @@ import { LinterMeta } from '../../../../apidom-language-types'; const variablesValuesTypeLint: LinterMeta = { code: ApilintCodes.OPENAPI3_O_SERVER_FIELD_VARIABLES_VALUES_TYPE, source: 'apilint', - message: '"varialbes" members must be Server Variable Object', + message: '"variables" members must be Server Variable Object', severity: 1, linterFunction: 'apilintChildrenOfElementsOrClasses', linterParams: [['serverVariable']],