updated to support file + form params in same request
This commit is contained in:
2
dist/swagger-ui.js
vendored
2
dist/swagger-ui.js
vendored
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
2
dist/swagger-ui.min.js
vendored
2
dist/swagger-ui.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user