mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Fixes the value format for apiKey security scheme.
The apiKey is applied either in query param or header, currently the value is a boolean whereas the value in header or query should always be a string.
This commit is contained in:
@@ -1097,7 +1097,7 @@ module.exports = {
|
||||
key: 'key',
|
||||
value: _.isString(securityDef.name) ? securityDef.name : '<API Key Name>'
|
||||
},
|
||||
{ key: 'value', value: true },
|
||||
{ key: 'value', value: '<API Key>' },
|
||||
{
|
||||
key: 'in',
|
||||
value: _.includes(['query', 'header'], securityDef.in) ? securityDef.in : 'header'
|
||||
|
||||
Reference in New Issue
Block a user