Skip to content

Parameter type support #684

Open
Open
@dspaeth-faber

Description

@dspaeth-faber

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions