grape-swagger
grape-swagger copied to clipboard
Array params are always sent as `formData` on GET requests
Hello, and thank you for such an amazing piece of software.
I'm not sure how it was planned to be, but I've noticed that array params are always been sent as formData
, even on GET requests. However, any other than query
params are not usually accepted when sending the GET requests.
Yep, it's possible to set param_type
through documentation: {}
, but that's not always comfortable to do.
Here's my little fix: https://github.com/newstler/grape-swagger/pull/1/commits/f66655462ba7140a113338c0021076bbb330e810
please add a spec to your fix and open a PR
Same for me
Actually you can use param_type
option:
optional :ids, type: [Integer], default: [], documentation: { param_type: 'query' }