Skip to content

Commit b8b4190

Browse files
committed
fix(ls): make OpenAPI OAuth FLow completion rules consistent
Refs 7e74e6a Refs #2032
1 parent cfa11df commit b8b4190

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/apidom-ls/src/config/openapi/oauth-flow/completion.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const completion: ApidomCompletionItem[] = [
1515
documentation: {
1616
kind: 'markdown',
1717
value:
18-
'**REQUIRED**. The authorization URL to be used for this flow. This MUST be in the form of a URL.',
18+
'Applies to `oauth2` (`"implicit"`, `"authorizationCode"`). **REQUIRED**. The authorization URL to be used for this flow. This MUST be in the form of a URL.',
1919
},
2020
targetSpecs: [
2121
{ namespace: 'openapi', version: '3.0.0' },
@@ -48,7 +48,7 @@ const completion: ApidomCompletionItem[] = [
4848
documentation: {
4949
kind: 'markdown',
5050
value:
51-
'**REQUIRED**. The token URL to be used for this flow. This MUST be in the form of a URL.',
51+
'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.',
5252
},
5353
targetSpecs: [
5454
{ namespace: 'openapi', version: '3.0.0' },
@@ -80,7 +80,8 @@ const completion: ApidomCompletionItem[] = [
8080
insertTextFormat: 2,
8181
documentation: {
8282
kind: 'markdown',
83-
value: 'The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL.',
83+
value:
84+
'Applies to `oauth2`. The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL.',
8485
},
8586
targetSpecs: [
8687
{ namespace: 'openapi', version: '3.0.0' },

0 commit comments

Comments
 (0)