Преглед на файлове

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



Зареждане…
Отказ
Запис