fix for #605, create default tag group

This commit is contained in:
Tony Tam
2014-09-26 09:52:27 -07:00
parent 4e15e9a068
commit b7a452eca3
5 changed files with 16 additions and 12 deletions

View File

@@ -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,