Skip to content

Commit 7f81b26

Browse files
committed
Merge pull request #145 from ianmacl/errorOnTypeMissing
Prevent ugly error on missing type
2 parents 9d10c51 + 9655d82 commit 7f81b26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/swagger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@
739739
}
740740
param.type = type;
741741

742-
if (type.toLowerCase() === 'boolean') {
742+
if (type && type.toLowerCase() === 'boolean') {
743743
param.allowableValues = {};
744744
param.allowableValues.values = ["true", "false"];
745745
}

0 commit comments

Comments
 (0)