Created
August 1, 2013 17:23
-
-
Save chtrinh/6133442 to your computer and use it in GitHub Desktop.
replace https://github.com/wordnik/swagger-ui/blob/master/dist/swagger-ui.js#L1590-L1597
with the following.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map = {}; | |
_ref = form.serializeArray(); | |
_ref1 = this.model.parameters; | |
for (_i = 0, _len = _ref.length; _i < _len; _i++) { | |
o = _ref[_i]; | |
if ((o.value != null) && jQuery.trim(o.value).length > 0) { | |
if (_ref1[_i].allowMultiple) { | |
map[o.name] = o.value.split(","); | |
} else { | |
map[o.name] = o.value; | |
} | |
} | |
} |
BTW, if you have any updates to share back to the code base, it would be appreciated. I'm trying to get rails style params working for our app as well.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think this is in reference to a previous revision, probably this one?
https://github.com/wordnik/swagger-ui/blob/11b4d6d07791f602216c3073d7770ec475d39a38/dist/swagger-ui.js#L1590-L1597