mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Handling securitySet = empty-array
This commit is contained in:
@@ -458,7 +458,9 @@ module.exports = {
|
||||
var securityDef,
|
||||
helper;
|
||||
|
||||
if (!securitySet) {
|
||||
// return noAuth if security set is not defined
|
||||
// or is an empty array
|
||||
if (!securitySet || (Array.isArray(securitySet) && securitySet.length === 0)) {
|
||||
return {
|
||||
type: 'noauth'
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user