-
Notifications
You must be signed in to change notification settings - Fork 6k
Use Rx2 Completalbe for Void Retrofit2 responses #7397
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
Use Rx2 Completalbe for Void Retrofit2 responses #7397
Conversation
I commented on #6553 the correct return type should be |
I disagree, @cbornet. Currently, all Retrofit2 + RxJava endpoints aren't using Indeed, the solution with My point is that we should consider this as a fix for #6553 as the generator delivers invalid code, but keep consistency and think about migrating to |
I was going to say that your change is also a breaking one but I realized that since it breaks something that is not working, I guess it doesn't harm. So for me this PR is OK. |
Any updates? Could you please stage it for the next release, @wing328 ? |
@wingsofovnia Thanks for the PR. Can you please rebase on the latest 2.4.0 to resolve the merge conflicts? |
@wing328 I rebased on the 2.4.0 (https://github.com/wingsofovnia/swagger-codegen/tree/fix/issue-6553-completable-rebased-2_4_0) branch but the build fails:
Is that ok? |
Anybody able to fix the conflicts and merge this one? |
Let me give it another try tomorrow. Will let you guys if I need any help. |
@joeboyscout04 I've resolved the merge conflicts and merged the change into master. Would you please pull the latest master to give it a try to make sure the change looks good? |
This fixes #6553 (@zkdzegede) + incorrect @return JavaDocs in retrofit interfaces. Tested on a real project.
Formatted operation signature in retrofit2/api.mustache (for easier review):
Java technical committee: @bbdouglas @JFCote @sreeshas @jfiala @lukoyanov @cbornet @wing328