[Ruby][Faraday][#10137] Fix config request options and timeout#10405
[Ruby][Faraday][#10137] Fix config request options and timeout#10405wing328 merged 2 commits intoOpenAPITools:masterfrom
Conversation
|
@wing328 Can you please review this PR and get it merged. |
|
Ruby tests with updated samples passed via https://app.travis-ci.com/github/OpenAPITools/openapi-generator/builds/238968179. I'll update samples after merging this PR into master. |
| end | ||
| request.headers = header_params | ||
| request.body = req_body | ||
| request.options = OpenStruct.new(req_opts) |
There was a problem hiding this comment.
@wing328 @NivathaSV8 I've been attempting to use this feature in a generated ruby SDK, as well as add the ability to directly return the binary media data gotten for a file. It appears to me that this PR has broken the functionality of the code fixed in #7842. While the temp file is created, the file is empty, and directly returning the binary data shows that @stream is empty. Prior to this PR, this seemed to work properly, and the culprit appears to be this line (89), as removing it allows the temp file to be created properly and the binary media return I'm working on in #11254 to work as well. I'm still fairly new to ruby, so I may be missing something here, but is there any way this issue could be validated? I've generated the SDK with version 5.3.1 of the CLI that was current as of 1/7/2021. I'm happy to provide more of my findings about this issue to help fix it, but I'd like to make sure I'm not incorrectly using this feature first. Any explanation as to why I might be seeing this issue and what could be done to fix it is greatly appreciated, thanks!
PR checklist
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*.For Windows users, please run the script in Git BASH.
master(5.3.0),6.0.x