Skip to content

Commit d24d0c4

Browse files
committed
Regenerate sample code.
1 parent d798259 commit d24d0c4

15 files changed

Lines changed: 77 additions & 15 deletions

File tree

  • samples/client
    • echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/infrastructure
    • others
      • kotlin-oneOf-anyOf-kotlinx-serialization/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-oneOf-discriminator-kotlinx-serialization/src/main/kotlin/org/openapitools/client/infrastructure
    • petstore
      • kotlin-default-values-jvm-retrofit2/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-retrofit2/src/main/kotlin/org/openapitools/client/infrastructure

samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,13 @@ class ApiClient(
159159

160160
companion object {
161161
@JvmStatic
162-
protected val BASE_URL_KEY: String = "org.openapitools.client.baseUrl"
162+
protected const val BASE_URL_KEY: String = "org.openapitools.client.baseUrl"
163+
@Deprecated(
164+
message = "Please use the capitalized constant `BASE_URL_KEY` instead.",
165+
replaceWith = ReplaceWith("BASE_URL_KEY")
166+
)
167+
@JvmStatic
168+
protected const val baseUrlKey: String = BASE_URL_KEY
163169

164170
@JvmStatic
165171
val defaultBasePath: String by lazy {

samples/client/others/kotlin-oneOf-anyOf-kotlinx-serialization/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,13 @@ class ApiClient(
101101

102102
companion object {
103103
@JvmStatic
104-
protected val BASE_URL_KEY: String = "org.openapitools.client.baseUrl"
104+
protected const val BASE_URL_KEY: String = "org.openapitools.client.baseUrl"
105+
@Deprecated(
106+
message = "Please use the capitalized constant `BASE_URL_KEY` instead.",
107+
replaceWith = ReplaceWith("BASE_URL_KEY")
108+
)
109+
@JvmStatic
110+
protected const val baseUrlKey: String = BASE_URL_KEY
105111

106112
@JvmStatic
107113
val defaultBasePath: String by lazy {

samples/client/others/kotlin-oneOf-discriminator-kotlinx-serialization/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,13 @@ class ApiClient(
101101

102102
companion object {
103103
@JvmStatic
104-
protected val BASE_URL_KEY: String = "org.openapitools.client.baseUrl"
104+
protected const val BASE_URL_KEY: String = "org.openapitools.client.baseUrl"
105+
@Deprecated(
106+
message = "Please use the capitalized constant `BASE_URL_KEY` instead.",
107+
replaceWith = ReplaceWith("BASE_URL_KEY")
108+
)
109+
@JvmStatic
110+
protected const val baseUrlKey: String = BASE_URL_KEY
105111

106112
@JvmStatic
107113
val defaultBasePath: String by lazy {

samples/client/petstore/kotlin-default-values-jvm-retrofit2/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,13 @@ class ApiClient(
101101

102102
companion object {
103103
@JvmStatic
104-
protected val BASE_URL_KEY: String = "org.openapitools.client.baseUrl"
104+
protected const val BASE_URL_KEY: String = "org.openapitools.client.baseUrl"
105+
@Deprecated(
106+
message = "Please use the capitalized constant `BASE_URL_KEY` instead.",
107+
replaceWith = ReplaceWith("BASE_URL_KEY")
108+
)
109+
@JvmStatic
110+
protected const val baseUrlKey: String = BASE_URL_KEY
105111

106112
@JvmStatic
107113
val defaultBasePath: String by lazy {

samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,13 @@ class ApiClient(
212212

213213
companion object {
214214
@JvmStatic
215-
protected val BASE_URL_KEY: String = "org.openapitools.client.baseUrl"
215+
protected const val BASE_URL_KEY: String = "org.openapitools.client.baseUrl"
216+
@Deprecated(
217+
message = "Please use the capitalized constant `BASE_URL_KEY` instead.",
218+
replaceWith = ReplaceWith("BASE_URL_KEY")
219+
)
220+
@JvmStatic
221+
protected const val baseUrlKey: String = BASE_URL_KEY
216222

217223
@JvmStatic
218224
val defaultBasePath: String by lazy {

samples/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,13 @@ class ApiClient(
213213

214214
companion object {
215215
@JvmStatic
216-
protected val BASE_URL_KEY: String = "org.openapitools.client.baseUrl"
216+
protected const val BASE_URL_KEY: String = "org.openapitools.client.baseUrl"
217+
@Deprecated(
218+
message = "Please use the capitalized constant `BASE_URL_KEY` instead.",
219+
replaceWith = ReplaceWith("BASE_URL_KEY")
220+
)
221+
@JvmStatic
222+
protected const val baseUrlKey: String = BASE_URL_KEY
217223

218224
@JvmStatic
219225
val defaultBasePath: String by lazy {

samples/client/petstore/kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import com.google.gson.reflect.TypeToken
88
open class ApiClient(val basePath: kotlin.String = defaultBasePath, val accessToken: String? = null, val apiKey: MutableMap<String, String> = mutableMapOf(), val apiKeyPrefix: MutableMap<String, String> = mutableMapOf(), var username: String? = null, var password: String? = null, val vertx: Vertx) {
99
companion object {
1010
const val BASE_URL_KEY: String = "org.openapitools.client.baseUrl"
11-
1211
@Deprecated(
1312
message = "Please use the capitalized constant `BASE_URL_KEY` instead.",
1413
replaceWith = ReplaceWith("BASE_URL_KEY")

samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import com.fasterxml.jackson.core.type.TypeReference
88
open class ApiClient(val basePath: kotlin.String = defaultBasePath, val accessToken: String? = null, val apiKey: MutableMap<String, String> = mutableMapOf(), val apiKeyPrefix: MutableMap<String, String> = mutableMapOf(), var username: String? = null, var password: String? = null, val vertx: Vertx) {
99
companion object {
1010
const val BASE_URL_KEY: String = "org.openapitools.client.baseUrl"
11-
1211
@Deprecated(
1312
message = "Please use the capitalized constant `BASE_URL_KEY` instead.",
1413
replaceWith = ReplaceWith("BASE_URL_KEY")

samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import com.fasterxml.jackson.core.type.TypeReference
88
open class ApiClient(val basePath: kotlin.String = defaultBasePath, val accessToken: String? = null, val apiKey: MutableMap<String, String> = mutableMapOf(), val apiKeyPrefix: MutableMap<String, String> = mutableMapOf(), var username: String? = null, var password: String? = null, val vertx: Vertx) {
99
companion object {
1010
const val BASE_URL_KEY: String = "org.openapitools.client.baseUrl"
11-
1211
@Deprecated(
1312
message = "Please use the capitalized constant `BASE_URL_KEY` instead.",
1413
replaceWith = ReplaceWith("BASE_URL_KEY")

samples/client/petstore/kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import java.nio.charset.StandardCharsets
77
open class ApiClient(val basePath: kotlin.String = defaultBasePath, val accessToken: String? = null, val apiKey: MutableMap<String, String> = mutableMapOf(), val apiKeyPrefix: MutableMap<String, String> = mutableMapOf(), var username: String? = null, var password: String? = null, val vertx: Vertx) {
88
companion object {
99
const val BASE_URL_KEY: String = "org.openapitools.client.baseUrl"
10-
1110
@Deprecated(
1211
message = "Please use the capitalized constant `BASE_URL_KEY` instead.",
1312
replaceWith = ReplaceWith("BASE_URL_KEY")

0 commit comments

Comments
 (0)