swagger-jsdoc
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -104,2 +104,3 @@ /** @module index */ | ||
var propertyName = propertyNames[j]; | ||
var keyName = propertyName + 's'; | ||
switch (propertyName) { | ||
@@ -110,3 +111,2 @@ case 'securityDefinition': | ||
case 'definition': { | ||
var keyName = propertyName + 's'; | ||
var definitionNames = Object | ||
@@ -121,2 +121,6 @@ .getOwnPropertyNames(pathObject[propertyName]); | ||
} | ||
case 'tag': { | ||
swaggerObject[keyName].push(pathObject[propertyName]); | ||
break; | ||
} | ||
default: { | ||
@@ -172,2 +176,3 @@ swaggerObject.paths[propertyName] = objectMerge( | ||
swaggerObject.securityDefinitions = {}; | ||
swaggerObject.tags = []; | ||
@@ -174,0 +179,0 @@ var apiPaths = convertGlobPaths(options.apis); |
{ | ||
"name": "swagger-jsdoc", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Generates swagger doc based on JSDoc", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,5 +10,5 @@ # swagger-jsdoc | ||
[![Circle CI](https://img.shields.io/circleci/project/Surnet/swagger-jsdoc/master.svg)](https://circleci.com/gh/Surnet/swagger-jsdoc) | ||
[![Codacy Badge](https://img.shields.io/codacy/c5d3d458d11a4fb88b55cd527b1c708f.svg)](https://www.codacy.com/app/Surnet/swagger-jsdoc) | ||
[![Dependency Status](https://img.shields.io/gemnasium/Surnet/swagger-jsdoc.svg)](https://gemnasium.com/Surnet/swagger-jsdoc) | ||
[![Documentation Status](http://inch-ci.org/github/Surnet/swagger-jsdoc.svg?branch=master&style=flat)](http://inch-ci.org/github/Surnet/swagger-jsdoc) | ||
[![Known Vulnerabilities](https://snyk.io/test/npm/swagger-jsdoc/badge.svg)](https://snyk.io/test/npm/swagger-jsdoc) | ||
@@ -15,0 +15,0 @@ ## Supported Swagger Versions |
13551
174