updated swagger-js library

This commit is contained in:
Tony Tam
2014-10-16 09:09:22 -07:00
parent 6b448c1fae
commit 52f55054ed
2 changed files with 33 additions and 6 deletions

View File

@@ -552,6 +552,11 @@ var Operation = function(parent, operationId, httpMethod, path, args, definition
param.allowableValues.descriptiveValues.push({value : value, isDefault: isDefault});
}
}
if(param.type === 'array' && typeof param.allowableValues === 'undefined') {
// can't show as a list if no values to select from
delete param.isList;
delete param.allowMultiple;
}
param.signature = this.getSignature(innerType, models);
param.sampleJSON = this.getSampleJSON(innerType, models);
param.responseClassSignature = param.signature;