Skip to content

Does not handle file Parameters #881

@spaceraccoon

Description

@spaceraccoon

As per the OpenAPI v2 documentation, If type is "file", the [consumes](https://swagger.io/specification/v2/#operationConsumes) MUST be either "multipart/form-data", " application/x-www-form-urlencoded" or both and the parameter MUST be [in](https://swagger.io/specification/v2/#parameterIn) "formData".

Currently, grape-swagger processes file parameters normally and does not enforce these requirements, leading to invalid OpenAPI v2 output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions