@trusource/simple-oas
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "@trusource/simple-oas", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"license": "ISC", | ||
"gitHead": "a946de6bd8446c9692ed6ab51c1e90ad7e16f342" | ||
"gitHead": "9af13f6d51bebbfa43fb37f4e513a5eb61a3953b" | ||
} |
@@ -8,3 +8,4 @@ 'use strict'; | ||
// we currently will always have one object | ||
const createSecuritySchemes = (security, securitySchemes) => { | ||
const createSecuritySchemes = (security, securitySchemes = {}) => { | ||
if (Object.keys(securitySchemes).length === 0) return []; | ||
if (security.length > 1) throw new Error('TruSource currently does not support multiple authentication types using logical OR.'); | ||
@@ -11,0 +12,0 @@ const schemes = security.length === 1 ? Object.keys(security[0]).map((name) => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7141
152