Skip to content

Commit

Permalink
updated for swagger-api#852
Browse files Browse the repository at this point in the history
  • Loading branch information
fehguy committed Jan 30, 2015
1 parent c06db3e commit 9553b97
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions lib/swagger-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,20 @@ SwaggerResource.prototype.addOperations = function (resource_path, ops, consumes
}
}
o.nickname = this.sanitize(o.nickname);
var op = new SwaggerOperation(o.nickname, resource_path, method, o.parameters, o.summary, o.notes, type, responseMessages, this, consumes, produces, o.authorizations, o.deprecated);
var op = new SwaggerOperation(o.nickname,
resource_path,
method,
o.parameters,
o.summary,
o.notes,
type,
responseMessages,
this,
consumes,
produces,
o.authorizations,
o.deprecated);

this.operations[op.nickname] = op;
output.push(this.operationsArray.push(op));
}
Expand Down Expand Up @@ -888,7 +901,7 @@ var SwaggerOperation = function (nickname, path, method, parameters, summary, no
this.consumes = consumes;
this.produces = produces;
this.authorizations = typeof authorizations !== 'undefined' ? authorizations : resource.authorizations;
this.deprecated = deprecated;
this.deprecated = (typeof deprecated === 'string' ? Boolean(deprecated) : deprecated);
this['do'] = __bind(this['do'], this);

if (errors.length > 0) {
Expand Down

0 comments on commit 9553b97

Please # to comment.