Fix for ParameterView #2004

This commit is contained in:
Patrick Hulce
2016-02-29 15:51:41 -08:00
parent 8823e5af26
commit 8ec1852953

View File

@@ -7,7 +7,8 @@ SwaggerUi.Views.ParameterView = Backbone.View.extend({
initialize: function(){
Handlebars.registerHelper('isArray', function(param, opts) {
if (param.type.toLowerCase() === 'array' || param.allowMultiple) {
var paramType = param.type && param.type.toLowerCase();
if (paramType === 'array' || param.allowMultiple) {
return opts.fn(this);
} else {
return opts.inverse(this);