You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
processesfile
parameters normally and does not enforce these requirements, leading to invalid OpenAPI v2 output.The text was updated successfully, but these errors were encountered: