koa-swagger
koa-swagger copied to clipboard
Supporting collectionFormat: 'multi'
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