added support for body params with name other than

This commit is contained in:
Tony Tam
2014-10-17 08:51:15 -07:00
parent b0301d6ee3
commit c6fb33a9c7
6 changed files with 65 additions and 64 deletions

2
dist/swagger-ui.js vendored
View File

@@ -1886,7 +1886,7 @@ helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
for (_j = 0, _len1 = _ref6.length; _j < _len1; _j++) {
o = _ref6[_j];
if ((o.value != null) && jQuery.trim(o.value).length > 0) {
map["body"] = o.value;
map[o.name] = o.value;
}
}
_ref7 = form.find("select");