From 73b3310ba2cbc727a8ad5db1e6ce7290f64928be Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Thu, 30 Jun 2016 11:13:39 -0400 Subject: [PATCH] Add verbs.parameter.fields check --- lib/apidocToSwagger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/apidocToSwagger.js b/lib/apidocToSwagger.js index c28eb40..f2590b8 100644 --- a/lib/apidocToSwagger.js +++ b/lib/apidocToSwagger.js @@ -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];