[Kotlin] Introduce support for Kotlin Explicit API Mode for Kotlin-Client generator (resolve #16506) (#19999)

* [Kotlin] Properly document nonPublicApi CLI option

* [Kotlin] Respect parameter name of parent KSerializer to avoid miss-behavior

* [Kotlin] Introduce support for Kotlin Explicit API Mode for Kotlin-Client generator (resolves #16506)
This commit is contained in:
Pavel Sveda
2024-10-30 22:57:47 +01:00
committed by GitHub
parent e9ea12f25a
commit acb16410c4
271 changed files with 5524 additions and 721 deletions

View File

@@ -101,7 +101,7 @@ class ApiClient(
companion object {
@JvmStatic
protected val baseUrlKey = "org.openapitools.client.baseUrl"
protected val baseUrlKey: String = "org.openapitools.client.baseUrl"
@JvmStatic
val defaultBasePath: String by lazy {

View File

@@ -6,7 +6,7 @@ import java.net.URI
class URIAdapter {
@ToJson
fun toJson(uri: URI) = uri.toString()
fun toJson(uri: URI): String = uri.toString()
@FromJson
fun fromJson(s: String): URI = URI.create(s)

View File

@@ -6,7 +6,7 @@ import java.util.UUID
class UUIDAdapter {
@ToJson
fun toJson(uuid: UUID) = uuid.toString()
fun toJson(uuid: UUID): String = uuid.toString()
@FromJson
fun fromJson(s: String): UUID = UUID.fromString(s)