diff --git a/dist/lib/swagger.js b/dist/lib/swagger.js index e181a928..5df38cbe 100644 --- a/dist/lib/swagger.js +++ b/dist/lib/swagger.js @@ -622,6 +622,9 @@ var SwaggerOperation = function(nickname, path, method, parameters, summary, not // for 1.1 compatibility var type = param.type || param.dataType; + if(type === 'array') { + type = 'array[' + (param.items.$ref ? param.items.$ref : param.items.type) + ']'; + } if(type.toLowerCase() === 'boolean') { param.allowableValues = {}; diff --git a/lib/swagger.js b/lib/swagger.js index e181a928..5df38cbe 100644 --- a/lib/swagger.js +++ b/lib/swagger.js @@ -622,6 +622,9 @@ var SwaggerOperation = function(nickname, path, method, parameters, summary, not // for 1.1 compatibility var type = param.type || param.dataType; + if(type === 'array') { + type = 'array[' + (param.items.$ref ? param.items.$ref : param.items.type) + ']'; + } if(type.toLowerCase() === 'boolean') { param.allowableValues = {};