updated js libs
This commit is contained in:
@@ -559,7 +559,7 @@ var Operation = function(parent, operationId, httpMethod, path, args, definition
|
||||
param.allowMultiple = true;
|
||||
}
|
||||
var innerType = this.getType(param);
|
||||
if(innerType.toString().toLowerCase() === 'boolean') {
|
||||
if(innerType && innerType.toString().toLowerCase() === 'boolean') {
|
||||
param.allowableValues = {};
|
||||
param.isList = true;
|
||||
param.enum = ["true", "false"];
|
||||
@@ -1000,7 +1000,7 @@ Operation.prototype.encodeCollection = function(type, name, value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO this encoding needs to be changed
|
||||
* TODO this encoding needs to be changed
|
||||
**/
|
||||
Operation.prototype.encodeQueryParam = function(arg) {
|
||||
return escape(arg);
|
||||
@@ -1040,7 +1040,7 @@ var Model = function(name, definition) {
|
||||
if(requiredFields.indexOf(key) >= 0)
|
||||
required = true;
|
||||
this.properties.push(new Property(key, property, required));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1219,7 +1219,7 @@ Property.prototype.toString = function() {
|
||||
str += ', <span class="propOptKey">optional</span>';
|
||||
str += ')';
|
||||
}
|
||||
else
|
||||
else
|
||||
str = this.name + ' (' + JSON.stringify(this.obj) + ')';
|
||||
|
||||
if(typeof this.description !== 'undefined')
|
||||
@@ -1483,4 +1483,4 @@ ShredHttpClient.prototype.execute = function(obj) {
|
||||
obj.on = res;
|
||||
}
|
||||
return this.shred.request(obj);
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user