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:
raghav
2021-07-29 20:00:48 +05:30
parent bb35217f3f
commit 7dc00a2894

View File

@@ -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'