fix for array params
This commit is contained in:
3
dist/lib/swagger.js
vendored
3
dist/lib/swagger.js
vendored
@@ -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 = {};
|
||||
|
||||
Reference in New Issue
Block a user