[kotlin][client] Small improvements (#15429)

* [kotlin][client] update Gradle wrapper in generated project

* [kotlin][client] Add @JsonClass(generateAdapter = false) to generated enums when using moshi library

This is needed, so the moshi generated R8 rules will include the enum classes:

https://github.com/square/moshi#enums

* [kotlin][client] Update generated samples
This commit is contained in:
Csaba Kozák
2023-05-09 17:28:54 +02:00
committed by GitHub
parent ef35e6d7ea
commit da9ad4a008
221 changed files with 6947 additions and 4481 deletions

View File

@@ -17,6 +17,7 @@ package org.openapitools.client.models
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
import java.io.Serializable
/**
@@ -41,6 +42,7 @@ data class ModelWithEnumPropertyHavingDefault (
*
* Values: vALUE,unknownDefaultOpenApi
*/
@JsonClass(generateAdapter = false)
enum class PropertyName(val value: kotlin.String) {
@Json(name = "VALUE") vALUE("VALUE"),
@Json(name = "unknown_default_open_api") unknownDefaultOpenApi("unknown_default_open_api");