fix for upload with no files

This commit is contained in:
Tony Tam
2014-05-14 09:45:18 -04:00
parent f7694d8525
commit 05588bb669
5 changed files with 20 additions and 8 deletions

2
dist/lib/swagger.js vendored
View File

@@ -904,6 +904,7 @@ SwaggerOperation.prototype.pathXml = function() {
SwaggerOperation.prototype.encodePathParam = function(pathParam) {
var encParts, part, parts, _i, _len;
pathParam = pathParam.toString();
if (pathParam.indexOf("/") === -1) {
return encodeURIComponent(pathParam);
} else {
@@ -1524,4 +1525,3 @@ e.SwaggerModel = SwaggerModel;
e.SwaggerModelProperty = SwaggerModelProperty;
e.SwaggerResource = SwaggerResource;
e.SwaggerApi = SwaggerApi;