Skip to content

Commit fcaff7c

Browse files
committed
Merge pull request #77 from vfeskov/master
fixed parameters code in SwaggerOperation constructor
2 parents 96ef4b4 + f417070 commit fcaff7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/swagger.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,8 @@ var SwaggerOperation = function(nickname, path, method, parameters, summary, not
615615
this.responseSampleJSON = this.getSampleJSON(this.type, this.resource.models);
616616
}
617617

618-
for(i = 0; i < parameters.length; i ++) {
619-
var param = parameters[i];
618+
for(i = 0; i < this.parameters.length; i ++) {
619+
var param = this.parameters[i];
620620
// might take this away
621621
param.name = param.name || param.type || param.dataType;
622622

0 commit comments

Comments
 (0)