-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
[Kotlin][Client] Added supporting Retrofit2(RxJava/RxJava2/Coroutines) #5750
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
[Kotlin][Client] Added supporting Retrofit2(RxJava/RxJava2/Coroutines) #5750
Conversation
|
Please merge the latest master into this branch to resolve the CircleCI failure. |
Merge with base repository
|
hm, merge is not helped |
Add dependencies for rxJava/rxJava2 and rx retrofit's adapter.
| : Serializable | ||
|
|
||
| { | ||
| ) : kotlin.mapOf<String, kotlin.Any>, Serializable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like broken for generics somewhere before my changes
|
#5600 Fixed encoding from 3. using {{{parent}}} |
|
| {{#moshi}} | ||
| @Json(name = "{{{vendorExtensions.x-base-name-literal}}}") | ||
| {{/moshi}} | ||
| {{#gson}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kuFEAR Why did you remove gson from here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gson @SerializedName target only for method and fields
@target({ElementType.FIELD, ElementType.METHOD}) and Kotlin interface fields is not yet determined as field by kotlin compiler, I saw error message there

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
| {{#moshi}} | ||
| @Json(name = "{{{vendorExtensions.x-base-name-literal}}}") | ||
| {{/moshi}} | ||
| {{#gson}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kuFEAR same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have an idea add @get:SerializedName("field")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If that works, it would be nice, because I use Gson on my projects
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
…SerializedName as for Jackson
This error is related to my PR? |
|
I don't think so, it seems to be related to python, and the master branch was failing with the same error. |
ok, thanks |
|
The issue has been fixed in the master. Please merge the latest master into this branch to fix the issue. |
|
now it fails on sudo apt-get install elixir |
|
Restarted the CI job. Let's see how it goes. |
|
Tested the kotlin retrofit2 samples and no longer encounter the issue. |
Added supporting Retrofit2(RxJava/RxJava2/Coroutines) for Kotlin client code generator
PR checklist
./bin/(or Windows batch scripts under.\bin\windows) to update Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit, and these must match the expectations made by your contribution. You only need to run./bin/{LANG}-petstore.sh,./bin/openapi3/{LANG}-petstore.shif updating the code or mustache templates for a language ({LANG}) (e.g. php, ruby, python, etc).master,4.3.x,5.0.x. Default:master.@jimschubert @dr4ke616 @karismann @Zomzog @andrewemery @4brunu