Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not handle file Parameters #881

Open
spaceraccoon opened this issue Nov 11, 2022 · 0 comments
Open

Does not handle file Parameters #881

spaceraccoon opened this issue Nov 11, 2022 · 0 comments

Comments

@spaceraccoon
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant