From b8dc64c58f78fdba86aaf718937038faf00b6804 Mon Sep 17 00:00:00 2001 From: Ian MacLennan Date: Wed, 8 Oct 2014 14:39:39 -0400 Subject: [PATCH] Fix issue with missing type parameter --- dist/lib/swagger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/lib/swagger.js b/dist/lib/swagger.js index 28716082e14..e5462898874 100644 --- a/dist/lib/swagger.js +++ b/dist/lib/swagger.js @@ -738,7 +738,7 @@ } param.type = type; - if (type.toLowerCase() === 'boolean') { + if (type && type.toLowerCase() === 'boolean') { param.allowableValues = {}; param.allowableValues.values = ["true", "false"]; }