Skip to content

Commit 091c3f9

Browse files
committed
updated to support file + form params in same request
1 parent 722da60 commit 091c3f9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/swagger-ui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,7 @@ templates['status_code'] = template(function (Handlebars,depth0,helpers,partials
15901590
_ref2 = this.model.parameters;
15911591
for (_k = 0, _len2 = _ref2.length; _k < _len2; _k++) {
15921592
param = _ref2[_k];
1593-
if (param.paramType === 'body' && param.name !== 'file') {
1593+
if ((param.paramType === 'body' || 'form') && param.name !== 'file') {
15941594
bodyParam.append(param.name, map[param.name]);
15951595
}
15961596
}

dist/swagger-ui.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/coffeescript/view/OperationView.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class OperationView extends Backbone.View
100100

101101
# add params except file
102102
for param in @model.parameters
103-
if param.paramType is 'body' and param.name isnt 'file'
103+
if (param.paramType is 'body' or 'form') and param.name isnt 'file'
104104
bodyParam.append(param.name, map[param.name])
105105

106106
# add files

0 commit comments

Comments
 (0)