fix array form parameters in live api docs
test plan: - go to /doc/api/live - enter an API token and click "Save token" - expand "Courses" and "Update courses" - enter an account_id and one or more course_ids separated by commas - click "Try it out" - the request should succeed fixes ADMIN-1124 Change-Id: I6d796fd33d0d6da88a3975617b7e0956de56cd29 Reviewed-on: https://gerrit.instructure.com/156289 Reviewed-by: Mysti Sadler <mysti@instructure.com> Reviewed-by: Carl Kibler <ckibler@instructure.com> Tested-by: Jenkins QA-Review: Ed Schiebel <eschiebel@instructure.com> Product-Review: Jeremy Stanley <jeremy@instructure.com>
This commit is contained in:
parent
9b1ba921f1
commit
0d460cbb90
|
@ -985,7 +985,7 @@ var SwaggerRequest = function(type, url, params, opts, successCallback, errorCal
|
|||
var name = param.name;
|
||||
var value = this.params[name];
|
||||
if (value !== undefined) {
|
||||
if (param.tags && param.tags.type == "array") {
|
||||
if (((param.tags && param.tags.type) || param.type) == "array") {
|
||||
var sepValues = splitStrip(value);
|
||||
for (var j = 0; j < sepValues.length; j++) {
|
||||
var sepValue = sepValues[j];
|
||||
|
|
Loading…
Reference in New Issue