Fix for ParameterView #2004
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user