Skip to content

Commit

Permalink
Merge pull request #32 from michael-smith-tanium/master
Browse files Browse the repository at this point in the history
Add verbs.parameter.fields check
  • Loading branch information
fsbahman authored May 31, 2017
2 parents 4a62f20 + 73b3310 commit e3bf5e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/apidocToSwagger.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ function createPathParameters(verbs, pathKeys) {
pathKeys = pathKeys || [];

var pathItemObject = [];
if (verbs.parameter) {
if (verbs.parameter && verbs.parameter.fields) {

for (var i = 0; i < verbs.parameter.fields.Parameter.length; i++) {
var param = verbs.parameter.fields.Parameter[i];
Expand Down

0 comments on commit e3bf5e1

Please sign in to comment.