You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|mapFileBinaryToByteArray|Map File and Binary to ByteArray (default: false)||false|
34
35
|modelMutable|Create mutable models||false|
35
36
|moshiCodeGen|Whether to enable codegen with the Moshi library. Refer to the [official Moshi doc](https://github.com/square/moshi#codegen) for more info.||false|
@@ -269,6 +273,8 @@ public KotlinClientCodegen() {
269
273
270
274
cliOptions.add(CliOption.newBoolean(SUPPORT_ANDROID_API_LEVEL_25_AND_BELLOW, "[WARNING] This flag will generate code that has a known security vulnerability. It uses `kotlin.io.createTempFile` instead of `java.nio.file.Files.createTempFile` in order to support Android API level 25 and bellow. For more info, please check the following links https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-23x4-m842-fmwf, https://github.com/OpenAPITools/openapi-generator/pull/9284"));
271
275
276
+
cliOptions.add(newCliOption(MAP_FILE_BINARY_TO_BYTE_ARRAY, "Map File and Binary to ByteArray (default: false)").defaultValue(Boolean.FALSE.toString()));
277
+
272
278
cliOptions.add(CliOption.newBoolean(GENERATE_ONEOF_ANYOF_WRAPPERS, "Generate oneOf, anyOf schemas as wrappers."));
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-okhttp/infrastructure/ApiClient.kt.mustache
Copy file name to clipboardExpand all lines: samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,21 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
58
58
val builder:OkHttpClient.Builder=OkHttpClient.Builder()
59
59
}
60
60
61
+
/**
62
+
* Guess Content-Type header from the given byteArray (defaults to "application/octet-stream").
Copy file name to clipboardExpand all lines: samples/client/petstore/kotlin-allOff-discriminator/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,21 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
58
58
val builder:OkHttpClient.Builder=OkHttpClient.Builder()
59
59
}
60
60
61
+
/**
62
+
* Guess Content-Type header from the given byteArray (defaults to "application/octet-stream").
Copy file name to clipboardExpand all lines: samples/client/petstore/kotlin-array-simple-string-jvm-okhttp4/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,21 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
58
58
val builder:OkHttpClient.Builder=OkHttpClient.Builder()
59
59
}
60
60
61
+
/**
62
+
* Guess Content-Type header from the given byteArray (defaults to "application/octet-stream").
Copy file name to clipboardExpand all lines: samples/client/petstore/kotlin-bigdecimal-default-okhttp4/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,21 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
58
58
val builder:OkHttpClient.Builder=OkHttpClient.Builder()
59
59
}
60
60
61
+
/**
62
+
* Guess Content-Type header from the given byteArray (defaults to "application/octet-stream").
Copy file name to clipboardExpand all lines: samples/client/petstore/kotlin-default-values-jvm-okhttp4/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,21 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
58
58
val builder:OkHttpClient.Builder=OkHttpClient.Builder()
59
59
}
60
60
61
+
/**
62
+
* Guess Content-Type header from the given byteArray (defaults to "application/octet-stream").
Copy file name to clipboardExpand all lines: samples/client/petstore/kotlin-enum-default-value/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,21 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
58
58
val builder:OkHttpClient.Builder=OkHttpClient.Builder()
59
59
}
60
60
61
+
/**
62
+
* Guess Content-Type header from the given byteArray (defaults to "application/octet-stream").
0 commit comments