[Kotlin][Client] Added supporting Retrofit2(RxJava/RxJava2/Coroutines) #5750
[Kotlin][Client] Added supporting Retrofit2(RxJava/RxJava2/Coroutines) #5750wing328 merged 39 commits intoOpenAPITools:masterfrom
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.
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.
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

| {{#moshi}} | ||
| @Json(name = "{{{vendorExtensions.x-base-name-literal}}}") | ||
| {{/moshi}} | ||
| {{#gson}} |
There was a problem hiding this comment.
I have an idea add @get:SerializedName("field")
There was a problem hiding this comment.
If that works, it would be nice, because I use Gson on my projects
…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