Skip to content

Commit 9d10c51

Browse files
committed
Merge pull request #140 from callenx/pr/addDeprecatedToModel
Deprecated is in spec, add it to model.
2 parents 6edffb5 + 2acea80 commit 9d10c51

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/swagger.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@
498498
}
499499
}
500500
o.nickname = this.sanitize(o.nickname);
501-
var op = new SwaggerOperation(o.nickname, resource_path, method, o.parameters, o.summary, o.notes, type, responseMessages, this, consumes, produces, o.authorizations);
501+
var op = new SwaggerOperation(o.nickname, resource_path, method, o.parameters, o.summary, o.notes, type, responseMessages, this, consumes, produces, o.authorizations, o.deprecated);
502502
this.operations[op.nickname] = op;
503503
output.push(this.operationsArray.push(op));
504504
}
@@ -691,7 +691,7 @@
691691
return str;
692692
};
693693

694-
var SwaggerOperation = function (nickname, path, method, parameters, summary, notes, type, responseMessages, resource, consumes, produces, authorizations) {
694+
var SwaggerOperation = function (nickname, path, method, parameters, summary, notes, type, responseMessages, resource, consumes, produces, authorizations, deprecated) {
695695
var _this = this;
696696

697697
var errors = [];
@@ -707,6 +707,7 @@
707707
this.consumes = consumes;
708708
this.produces = produces;
709709
this.authorizations = authorizations;
710+
this.deprecated = deprecated;
710711
this["do"] = __bind(this["do"], this);
711712

712713
if (errors.length > 0) {

0 commit comments

Comments
 (0)