@@ -415,6 +415,9 @@ SwaggerClient.prototype.buildFromSpec = function(response) {
|
|||||||
if(typeof response.paths[path] === 'object') {
|
if(typeof response.paths[path] === 'object') {
|
||||||
var httpMethod;
|
var httpMethod;
|
||||||
for(httpMethod in response.paths[path]) {
|
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 operation = response.paths[path][httpMethod];
|
||||||
var tags = operation.tags;
|
var tags = operation.tags;
|
||||||
if(typeof tags === 'undefined') {
|
if(typeof tags === 'undefined') {
|
||||||
|
|||||||
Reference in New Issue
Block a user