Skip to content

Commit 06a4038

Browse files
committed
fixes for allowable values drop-down
1 parent 5924f0e commit 06a4038

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/swagger.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// swagger.js
2-
// version 2.0.15
2+
// version 2.0.16
33

44
var __bind = function(fn, me){
55
return function(){
@@ -636,7 +636,7 @@ var SwaggerOperation = function(nickname, path, method, parameters, summary, not
636636
param.allowableValues = {};
637637
param.allowableValues.descriptiveValues = [];
638638

639-
for(j = 0; j < enumValue.length; j++) {
639+
for(var j = 0; j < enumValue.length; j++) {
640640
var v = enumValue[j];
641641
if(param.defaultValue != null) {
642642
param.allowableValues.descriptiveValues.push ({
@@ -652,15 +652,15 @@ var SwaggerOperation = function(nickname, path, method, parameters, summary, not
652652
}
653653
}
654654
}
655-
if(param.allowableValues != null) {
655+
else if(param.allowableValues != null) {
656656
if(param.allowableValues.valueType === "RANGE")
657657
param.isRange = true;
658658
else
659659
param.isList = true;
660660
if(param.allowableValues != null) {
661661
param.allowableValues.descriptiveValues = [];
662662
if(param.allowableValues.values) {
663-
for(j = 0; j < param.allowableValues.values.length; j++){
663+
for(var j = 0; j < param.allowableValues.values.length; j++){
664664
var v = param.allowableValues.values[j];
665665
if(param.defaultValue != null) {
666666
param.allowableValues.descriptiveValues.push ({

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
}
99
],
1010
"description": "swagger.js is a javascript client for use with swaggering APIs.",
11-
"version": "2.0.15",
11+
"version": "2.0.16",
1212
"homepage": "http://swagger.wordnik.com",
1313
"repository": {
1414
"type": "git",

0 commit comments

Comments
 (0)