|
|
@@ -420,6 +420,9 @@ SwaggerClient.prototype.buildFromSpec = function(response) { |
|
|
|
if(typeof response.paths[path] === 'object') { |
|
|
|
var httpMethod; |
|
|
|
for(httpMethod in response.paths[path]) { |
|
|
|
if(['delete', 'get', 'head', 'options', 'patch', 'post', 'put'].indexOf(httpMethod) === -1) { |
|
|
|
continue; |
|
|
|
} |
|
|
|
var operation = response.paths[path][httpMethod]; |
|
|
|
var tags = operation.tags; |
|
|
|
if(typeof tags === 'undefined') { |
|
|
@@ -997,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); |
|
|
@@ -1037,7 +1040,7 @@ var Model = function(name, definition) { |
|
|
|
if(requiredFields.indexOf(key) >= 0) |
|
|
|
required = true; |
|
|
|
this.properties.push(new Property(key, property, required)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -1216,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') |
|
|
@@ -1480,4 +1483,4 @@ ShredHttpClient.prototype.execute = function(obj) { |
|
|
|
obj.on = res; |
|
|
|
} |
|
|
|
return this.shred.request(obj); |
|
|
|
}; |
|
|
|
}; |