forked from stoplightio/elements
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): reset the auth in tryit to a supported scheme (stoplightio…
- Loading branch information
Daniel A. White
authored
May 25, 2023
1 parent
afd08c3
commit 9bc318f
Showing
4 changed files
with
107 additions
and
9 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
packages/elements-core/src/__fixtures__/operations/security-basic.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { IHttpOperation } from '@stoplight/types'; | ||
|
||
export const httpOperation: IHttpOperation = { | ||
id: '?http-operation-id?', | ||
iid: 'GET token', | ||
method: 'get', | ||
path: '/token', | ||
summary: 'Get Token', | ||
responses: [], | ||
security: [ | ||
[ | ||
{ | ||
id: '?http-security-basicKey?', | ||
key: 'basicKey', | ||
type: 'http', | ||
scheme: 'basic', | ||
description: | ||
'Get access to data while protecting your account credentials. OAuth2 is also a safer and more secure way to give you access.', | ||
}, | ||
], | ||
], | ||
}; | ||
|
||
export default httpOperation; |
25 changes: 25 additions & 0 deletions
25
packages/elements-core/src/__fixtures__/operations/security-bearer.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { IHttpOperation } from '@stoplight/types'; | ||
|
||
export const httpOperation: IHttpOperation = { | ||
id: '?http-operation-id?', | ||
iid: 'GET todos', | ||
method: 'get', | ||
path: '/todos', | ||
summary: 'List todos', | ||
responses: [], | ||
security: [ | ||
[ | ||
{ | ||
id: '?http-security-bearerKey?', | ||
key: 'bearerKey', | ||
type: 'http', | ||
scheme: 'bearer', | ||
description: | ||
'Get access to data while protecting your account credentials. OAuth2 is also a safer and more secure way to give you access.', | ||
bearerFormat: 'Authorization', | ||
}, | ||
], | ||
], | ||
}; | ||
|
||
export default httpOperation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters