fixed file param name

This commit is contained in:
Tony Tam
2013-05-30 01:25:20 -07:00
parent b5d2f21a6d
commit dbfb1adc26
5 changed files with 36 additions and 29 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' || 'form') && param.name !== 'file' && (map[param.name] != null)) {
if ((param.paramType === 'body' || 'form') && param.name !== 'file' && param.name !== 'File' && (map[param.name] != null)) {
bodyParam.append(param.name, map[param.name]);
}
}