re-enabled notes

This commit is contained in:
Tony Tam
2012-08-03 21:09:36 -07:00
parent e4006b9b41
commit af5ec2a700
2 changed files with 6 additions and 4 deletions

5
dist/lib/swagger.js vendored
View File

@@ -204,7 +204,7 @@
_results = [];
for (_i = 0, _len = ops.length; _i < _len; _i++) {
o = ops[_i];
op = new SwaggerOperation(o.nickname, resource_path, o.httpMethod, o.parameters, o.summary, this);
op = new SwaggerOperation(o.nickname, resource_path, o.httpMethod, o.parameters, o.summary, o.notes, this);
this.operations[op.nickname] = op;
_results.push(this.operationsArray.push(op));
}
@@ -233,7 +233,7 @@
SwaggerOperation = (function() {
function SwaggerOperation(nickname, path, httpMethod, parameters, summary, resource) {
function SwaggerOperation(nickname, path, httpMethod, parameters, summary, notes, resource) {
var parameter, v, _i, _j, _len, _len1, _ref, _ref1,
_this = this;
this.nickname = nickname;
@@ -241,6 +241,7 @@
this.httpMethod = httpMethod;
this.parameters = parameters != null ? parameters : [];
this.summary = summary;
this.notes = notes;
this.resource = resource;
this["do"] = __bind(this["do"], this);

View File

@@ -204,7 +204,7 @@
_results = [];
for (_i = 0, _len = ops.length; _i < _len; _i++) {
o = ops[_i];
op = new SwaggerOperation(o.nickname, resource_path, o.httpMethod, o.parameters, o.summary, this);
op = new SwaggerOperation(o.nickname, resource_path, o.httpMethod, o.parameters, o.summary, o.notes, this);
this.operations[op.nickname] = op;
_results.push(this.operationsArray.push(op));
}
@@ -233,7 +233,7 @@
SwaggerOperation = (function() {
function SwaggerOperation(nickname, path, httpMethod, parameters, summary, resource) {
function SwaggerOperation(nickname, path, httpMethod, parameters, summary, notes, resource) {
var parameter, v, _i, _j, _len, _len1, _ref, _ref1,
_this = this;
this.nickname = nickname;
@@ -241,6 +241,7 @@
this.httpMethod = httpMethod;
this.parameters = parameters != null ? parameters : [];
this.summary = summary;
this.notes = notes;
this.resource = resource;
this["do"] = __bind(this["do"], this);