updated to support file + form params in same request

This commit is contained in:
Tony Tam
2013-04-05 08:26:14 -07:00
parent 722da60f5d
commit 091c3f912b
3 changed files with 3 additions and 3 deletions

2
dist/swagger-ui.js vendored
View File

@@ -1590,7 +1590,7 @@ templates['status_code'] = template(function (Handlebars,depth0,helpers,partials
_ref2 = this.model.parameters;
for (_k = 0, _len2 = _ref2.length; _k < _len2; _k++) {
param = _ref2[_k];
if (param.paramType === 'body' && param.name !== 'file') {
if ((param.paramType === 'body' || 'form') && param.name !== 'file') {
bodyParam.append(param.name, map[param.name]);
}
}

File diff suppressed because one or more lines are too long

View File

@@ -100,7 +100,7 @@ class OperationView extends Backbone.View
# add params except file
for param in @model.parameters
if param.paramType is 'body' and param.name isnt 'file'
if (param.paramType is 'body' or 'form') and param.name isnt 'file'
bodyParam.append(param.name, map[param.name])
# add files