swaggerize-routes
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -152,6 +152,12 @@ 'use strict'; | ||
var handler; | ||
try { | ||
//If the pathname is already a resolved function, return it. | ||
//In the case of x-handler and x-authorize, users can define | ||
//external handler/authorize modules and functions OR override | ||
//existing x-authorize functions. | ||
if (thing.isFunction(pathname)) { | ||
return pathname; | ||
} | ||
pathname = path.resolve(basedir, pathname); | ||
try { | ||
pathname = path.resolve(basedir, pathname); | ||
handler = require(pathname); | ||
@@ -158,0 +164,0 @@ |
@@ -23,4 +23,7 @@ 'use strict'; | ||
consumes: { | ||
type: 'string', | ||
pattern: /multipart\/form-data|application\/x-www-form-urlencoded/, | ||
type: 'array', | ||
items: { | ||
type: 'string', | ||
pattern: /multipart\/form-data|application\/x-www-form-urlencoded/, | ||
}, | ||
required: true | ||
@@ -27,0 +30,0 @@ }, |
{ | ||
"name": "swaggerize-routes", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"author": "Trevor Livingston <trlivingston@paypal.com>", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
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
27599
540