koa-swagger icon indicating copy to clipboard operation
koa-swagger copied to clipboard

Supporting collectionFormat: 'multi'

Open evenius opened this issue 9 years ago • 0 comments

If it's not an array, then put it in an array, matching the functionality of split, always guaranteeing an array with at least one element.

I get that it seems naive, but if this is connected to koa, and koa parses foo=bar&foo=baz as ['bar', 'bas'], collectionFormat: multi matches it

evenius avatar Nov 12 '16 21:11 evenius