瀏覽代碼

re-enabled notes

bubble
Tony Tam 12 年之前
父節點
當前提交
af5ec2a700
共有 2 個檔案被更改,包括 6 行新增4 行删除
  1. +3
    -2
      dist/lib/swagger.js
  2. +3
    -2
      lib/swagger.js

+ 3
- 2
dist/lib/swagger.js 查看文件

@@ -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);



+ 3
- 2
lib/swagger.js 查看文件

@@ -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);



Loading…
取消
儲存