fix for #605, create default tag group
This commit is contained in:
6
dist/lib/swagger-client.js
vendored
6
dist/lib/swagger-client.js
vendored
@@ -289,8 +289,10 @@ SwaggerClient.prototype.buildFromSpec = function(response) {
|
||||
for(httpMethod in response.paths[path]) {
|
||||
var operation = response.paths[path][httpMethod];
|
||||
var tags = operation.tags;
|
||||
if(typeof tags === 'undefined')
|
||||
tags = [];
|
||||
if(typeof tags === 'undefined') {
|
||||
operation.tags = [ 'default' ];
|
||||
tags = operation.tags;
|
||||
}
|
||||
var operationId = this.idFromOp(path, httpMethod, operation);
|
||||
var operation = new Operation (
|
||||
this,
|
||||
|
||||
Reference in New Issue
Block a user