-
Notifications
You must be signed in to change notification settings - Fork 367
Docs generation fails image is returned as part of a spec #205
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
Comments
Same here, I have:
Where And I'm getting:
I'm on Rails 4.1.9 and rspec_api_documentation 4.4.0 Thanks! |
As a workaround, I've replaced the contents of binaries files with a string like "Contents of a JPEG image". This also documents quite well. Perhaps you can use this. |
Hi @bforma can I ask you have did you do that? Thank you so much. |
Hi @risinglf, just create a |
thanks @bforma my problem is on the response, that it's a PDF file. Any ideas how to handle it? Thank you. |
@risinglf Last week I pushed up changes that should sniff out binary data and replace it with |
Closing because this should be fixed in newer versions. See client_base.rb |
I'm getting the following error when trying to create documentation for a route that returns a file.
write': "\xFF" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError) when trying to return a jpeg from my api.
This seems to be related
#39
The text was updated successfully, but these errors were encountered: