Open
Description
With grape-swagger issue 49 and 120. some discussion started about responsibilities and parameter types.
Swagger UI supports
path
query
body
header
form
as paramter types. For grape
all parameters are equal and add's no further information.
grape-swagger
walks around this by adding custom options to swagger or use some logic to determine the parameter type.
I would suggest that grape make this kind of parameters too to first class citizens like
it already does for route params and marks the type into the documentation.
Maybe it can also be checked that a query param does not be set via a body param.