swagger-jsdoc
Advanced tools
Comparing version 1.4.1 to 1.5.0
@@ -120,3 +120,10 @@ /** @module index */ | ||
case 'tag': { | ||
swaggerObject[keyName].push(pathObject[propertyName]); | ||
var tag = pathObject[propertyName]; | ||
if (Array.isArray(tag)) { | ||
for (var t = 0; t < tag.length; t = t + 1) { | ||
swaggerObject[keyName].push(tag[t]); | ||
} | ||
} else { | ||
swaggerObject[keyName].push(tag); | ||
} | ||
break; | ||
@@ -174,3 +181,3 @@ } | ||
swaggerObject.securityDefinitions = {}; | ||
swaggerObject.tags = []; | ||
swaggerObject.tags = swaggerObject.tags || []; | ||
@@ -177,0 +184,0 @@ var apiPaths = convertGlobPaths(options.apis); |
{ | ||
"name": "swagger-jsdoc", | ||
"version": "1.4.1", | ||
"version": "1.5.0", | ||
"description": "Generates swagger doc based on JSDoc", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
17788
273