From b8b4190ad9483ccb77ccc1d97ee15e3a60aa2471 Mon Sep 17 00:00:00 2001 From: Vladimir Gorej Date: Mon, 24 Oct 2022 10:12:02 +0200 Subject: [PATCH] fix(ls): make OpenAPI OAuth FLow completion rules consistent Refs 7e74e6a2c3a309ae104461bbe80fbef30865a9fe Refs #2032 --- .../apidom-ls/src/config/openapi/oauth-flow/completion.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/apidom-ls/src/config/openapi/oauth-flow/completion.ts b/packages/apidom-ls/src/config/openapi/oauth-flow/completion.ts index 589465ca32..8893d26c17 100644 --- a/packages/apidom-ls/src/config/openapi/oauth-flow/completion.ts +++ b/packages/apidom-ls/src/config/openapi/oauth-flow/completion.ts @@ -15,7 +15,7 @@ const completion: ApidomCompletionItem[] = [ documentation: { kind: 'markdown', value: - '**REQUIRED**. The authorization URL to be used for this flow. This MUST be in the form of a URL.', + 'Applies to `oauth2` (`"implicit"`, `"authorizationCode"`). **REQUIRED**. The authorization URL to be used for this flow. This MUST be in the form of a URL.', }, targetSpecs: [ { namespace: 'openapi', version: '3.0.0' }, @@ -48,7 +48,7 @@ const completion: ApidomCompletionItem[] = [ documentation: { kind: 'markdown', value: - '**REQUIRED**. The token URL to be used for this flow. This MUST be in the form of a URL.', + 'Applies to `oauth2` (`"password"`, `"clientCredentials"`, `"authorizationCode"`). **REQUIRED**. The token URL to be used for this flow. This MUST be in the form of a URL.', }, targetSpecs: [ { namespace: 'openapi', version: '3.0.0' }, @@ -80,7 +80,8 @@ const completion: ApidomCompletionItem[] = [ insertTextFormat: 2, documentation: { kind: 'markdown', - value: 'The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL.', + value: + 'Applies to `oauth2`. The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL.', }, targetSpecs: [ { namespace: 'openapi', version: '3.0.0' },