added options styling, swagger-js update, per #420

This commit is contained in:
Tony Tam
2014-03-18 19:41:49 -07:00
parent 8f665f76da
commit a5556d7f01
6 changed files with 91 additions and 4 deletions

3
dist/lib/swagger.js vendored
View File

@@ -1,5 +1,5 @@
// swagger.js
// version 2.0.23
// version 2.0.25
var __bind = function(fn, me){
return function(){
@@ -697,6 +697,7 @@ var SwaggerOperation = function(nickname, path, method, parameters, summary, not
if(type === 'array') {
type = 'array[' + (param.items.$ref ? param.items.$ref : param.items.type) + ']';
}
param.type = type;
if(type.toLowerCase() === 'boolean') {
param.allowableValues = {};