This commit is contained in:
Ayush Gupta
2012-07-13 08:40:22 -07:00
parent 5f2e11117c
commit a1320696e0
4 changed files with 17 additions and 5 deletions

2
dist/lib/swagger.js vendored
View File

@@ -401,7 +401,7 @@
_ref = this.parameters;
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
param = _ref[_i];
if (jQuery.inArray(param.paramType, paramTypes) && args[param.name]) {
if ((jQuery.inArray(param.paramType, paramTypes) >= 0) && args[param.name]) {
matchingParams[param.name] = urlEncode ? encodeURIComponent(args[param.name]) : args[param.name];
}
}

16
dist/swagger-ui.js vendored
View File

@@ -592,16 +592,18 @@ templates['resource'] = template(function (Handlebars,depth0,helpers,partials,da
// Generated by CoffeeScript 1.3.3
// Generated by CoffeeScript 1.3.1
(function() {
var HeaderView, MainView, OperationView, ParameterView, ResourceView, SwaggerUi,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor; child.__super__ = parent.prototype; return child; };
SwaggerUi = (function(_super) {
__extends(SwaggerUi, _super);
SwaggerUi.name = 'SwaggerUi';
function SwaggerUi() {
return SwaggerUi.__super__.constructor.apply(this, arguments);
}
@@ -710,6 +712,8 @@ templates['resource'] = template(function (Handlebars,depth0,helpers,partials,da
__extends(HeaderView, _super);
HeaderView.name = 'HeaderView';
function HeaderView() {
return HeaderView.__super__.constructor.apply(this, arguments);
}
@@ -776,6 +780,8 @@ templates['resource'] = template(function (Handlebars,depth0,helpers,partials,da
__extends(MainView, _super);
MainView.name = 'MainView';
function MainView() {
return MainView.__super__.constructor.apply(this, arguments);
}
@@ -816,6 +822,8 @@ templates['resource'] = template(function (Handlebars,depth0,helpers,partials,da
__extends(ResourceView, _super);
ResourceView.name = 'ResourceView';
function ResourceView() {
return ResourceView.__super__.constructor.apply(this, arguments);
}
@@ -851,6 +859,8 @@ templates['resource'] = template(function (Handlebars,depth0,helpers,partials,da
__extends(OperationView, _super);
OperationView.name = 'OperationView';
function OperationView() {
return OperationView.__super__.constructor.apply(this, arguments);
}
@@ -993,6 +1003,8 @@ templates['resource'] = template(function (Handlebars,depth0,helpers,partials,da
__extends(ParameterView, _super);
ParameterView.name = 'ParameterView';
function ParameterView() {
return ParameterView.__super__.constructor.apply(this, arguments);
}

File diff suppressed because one or more lines are too long

View File

@@ -401,7 +401,7 @@
_ref = this.parameters;
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
param = _ref[_i];
if (jQuery.inArray(param.paramType, paramTypes) && args[param.name]) {
if ((jQuery.inArray(param.paramType, paramTypes) >= 0) && args[param.name]) {
matchingParams[param.name] = urlEncode ? encodeURIComponent(args[param.name]) : args[param.name];
}
}