-
Notifications
You must be signed in to change notification settings - Fork 472
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
File Upload #47
Comments
Actually, the solution is oneliner - Ruby uses Hash as file-class, and that's the reason why current matching value[:type] = 'file' if value.is_a?(Hash) && value[:type] == 'Rack::Multipart::UploadedFile'` doesnt work; I pushed patch with updated matching; and it's shows uploading button as it should. https://github.com/tim-vandecasteele/grape-swagger/pull/48 |
Like! |
Fyi, https://github.com/tim-vandecasteele/grape-swagger/pull/48 is still open and needs work. |
Closed via tim-vandecasteele@04566fc. |
Bad news, it appears has had some unintended consequences for #91. My theory: I believe this assertion that the type is |
One of the API Endpoints expects an file upload. The api works fine, but swagger-ui does not render an file upload. Instead of that it renders an input filed. What I have to do to get a file upload rendered?
Many Thanks in advance.
The text was updated successfully, but these errors were encountered: