forked from loafle/openapi-generator-original
Fix typo "bellow" (#20268)
* Fix typo in constant name: s/BELLOW/BELOW/ * Fix typo ('bellow') in docs, comments and strings
This commit is contained in:
parent
d29196a1f0
commit
3a37ba33a7
@ -47,7 +47,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
|||||||
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |null|
|
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |null|
|
||||||
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |null|
|
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |null|
|
||||||
|sourceFolder|source folder for generated code| |src/main/kotlin|
|
|sourceFolder|source folder for generated code| |src/main/kotlin|
|
||||||
|supportAndroidApiLevel25AndBelow|[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| |false|
|
|supportAndroidApiLevel25AndBelow|[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 below. 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| |false|
|
||||||
|useCoroutines|Whether to use the Coroutines adapter with the retrofit2 library.| |false|
|
|useCoroutines|Whether to use the Coroutines adapter with the retrofit2 library.| |false|
|
||||||
|useRxJava3|Whether to use the RxJava3 adapter with the retrofit2 library.| |false|
|
|useRxJava3|Whether to use the RxJava3 adapter with the retrofit2 library.| |false|
|
||||||
|useSettingsGradle|Whether the project uses settings.gradle.| |false|
|
|useSettingsGradle|Whether the project uses settings.gradle.| |false|
|
||||||
|
@ -93,7 +93,7 @@ public class KotlinClientCodegen extends AbstractKotlinCodegen {
|
|||||||
public static final String EXPLICIT_API = "explicitApi";
|
public static final String EXPLICIT_API = "explicitApi";
|
||||||
public static final String NULLABLE_RETURN_TYPE = "nullableReturnType";
|
public static final String NULLABLE_RETURN_TYPE = "nullableReturnType";
|
||||||
|
|
||||||
public static final String SUPPORT_ANDROID_API_LEVEL_25_AND_BELLOW = "supportAndroidApiLevel25AndBelow";
|
public static final String SUPPORT_ANDROID_API_LEVEL_25_AND_BELOW = "supportAndroidApiLevel25AndBelow";
|
||||||
|
|
||||||
public static final String MAP_FILE_BINARY_TO_BYTE_ARRAY = "mapFileBinaryToByteArray";
|
public static final String MAP_FILE_BINARY_TO_BYTE_ARRAY = "mapFileBinaryToByteArray";
|
||||||
|
|
||||||
@ -275,7 +275,7 @@ public class KotlinClientCodegen extends AbstractKotlinCodegen {
|
|||||||
|
|
||||||
cliOptions.add(CliOption.newBoolean(GENERATE_ROOM_MODELS, "Generate Android Room database models in addition to API models (JVM Volley library only)", false));
|
cliOptions.add(CliOption.newBoolean(GENERATE_ROOM_MODELS, "Generate Android Room database models in addition to API models (JVM Volley library only)", false));
|
||||||
|
|
||||||
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"));
|
cliOptions.add(CliOption.newBoolean(SUPPORT_ANDROID_API_LEVEL_25_AND_BELOW, "[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 below. 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"));
|
||||||
|
|
||||||
cliOptions.add(new CliOption(MAP_FILE_BINARY_TO_BYTE_ARRAY, "Map File and Binary to ByteArray (default: false)").defaultValue(Boolean.FALSE.toString()));
|
cliOptions.add(new CliOption(MAP_FILE_BINARY_TO_BYTE_ARRAY, "Map File and Binary to ByteArray (default: false)").defaultValue(Boolean.FALSE.toString()));
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ After the client library is installed/deployed, you can use it in your Maven pro
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
And to use the api you can follow the examples bellow:
|
And to use the api you can follow the examples below:
|
||||||
|
|
||||||
```java
|
```java
|
||||||
|
|
||||||
|
@ -228,7 +228,7 @@ import com.squareup.moshi.adapter
|
|||||||
}
|
}
|
||||||
|
|
||||||
{{^supportAndroidApiLevel25AndBelow}}
|
{{^supportAndroidApiLevel25AndBelow}}
|
||||||
// Attention: if you are developing an android app that supports API Level 25 and bellow, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
// Attention: if you are developing an android app that supports API Level 25 and below, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
||||||
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
||||||
{{/supportAndroidApiLevel25AndBelow}}
|
{{/supportAndroidApiLevel25AndBelow}}
|
||||||
{{#supportAndroidApiLevel25AndBelow}}
|
{{#supportAndroidApiLevel25AndBelow}}
|
||||||
|
@ -90,7 +90,7 @@ paths:
|
|||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Ok
|
description: Ok
|
||||||
# Section bellow is requested because of issue #436
|
# Section below is requested because of issue #436
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
SomeObj:
|
SomeObj:
|
||||||
|
@ -32,7 +32,7 @@ After the client library is installed/deployed, you can use it in your Maven pro
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
And to use the api you can follow the examples bellow:
|
And to use the api you can follow the examples below:
|
||||||
|
|
||||||
```java
|
```java
|
||||||
|
|
||||||
|
@ -185,7 +185,7 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attention: if you are developing an android app that supports API Level 25 and bellow, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
// Attention: if you are developing an android app that supports API Level 25 and below, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
||||||
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
||||||
tempFile.deleteOnExit()
|
tempFile.deleteOnExit()
|
||||||
body.byteStream().use { inputStream ->
|
body.byteStream().use { inputStream ->
|
||||||
|
@ -32,7 +32,7 @@ After the client library is installed/deployed, you can use it in your Maven pro
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
And to use the api you can follow the examples bellow:
|
And to use the api you can follow the examples below:
|
||||||
|
|
||||||
```java
|
```java
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ After the client library is installed/deployed, you can use it in your Maven pro
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
And to use the api you can follow the examples bellow:
|
And to use the api you can follow the examples below:
|
||||||
|
|
||||||
```java
|
```java
|
||||||
|
|
||||||
|
@ -185,7 +185,7 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attention: if you are developing an android app that supports API Level 25 and bellow, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
// Attention: if you are developing an android app that supports API Level 25 and below, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
||||||
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
||||||
tempFile.deleteOnExit()
|
tempFile.deleteOnExit()
|
||||||
body.byteStream().use { inputStream ->
|
body.byteStream().use { inputStream ->
|
||||||
|
@ -185,7 +185,7 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attention: if you are developing an android app that supports API Level 25 and bellow, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
// Attention: if you are developing an android app that supports API Level 25 and below, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
||||||
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
||||||
tempFile.deleteOnExit()
|
tempFile.deleteOnExit()
|
||||||
body.byteStream().use { inputStream ->
|
body.byteStream().use { inputStream ->
|
||||||
|
@ -185,7 +185,7 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attention: if you are developing an android app that supports API Level 25 and bellow, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
// Attention: if you are developing an android app that supports API Level 25 and below, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
||||||
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
||||||
tempFile.deleteOnExit()
|
tempFile.deleteOnExit()
|
||||||
body.byteStream().use { inputStream ->
|
body.byteStream().use { inputStream ->
|
||||||
|
@ -185,7 +185,7 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attention: if you are developing an android app that supports API Level 25 and bellow, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
// Attention: if you are developing an android app that supports API Level 25 and below, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
||||||
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
||||||
tempFile.deleteOnExit()
|
tempFile.deleteOnExit()
|
||||||
body.byteStream().use { inputStream ->
|
body.byteStream().use { inputStream ->
|
||||||
|
@ -185,7 +185,7 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attention: if you are developing an android app that supports API Level 25 and bellow, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
// Attention: if you are developing an android app that supports API Level 25 and below, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
||||||
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
||||||
tempFile.deleteOnExit()
|
tempFile.deleteOnExit()
|
||||||
body.byteStream().use { inputStream ->
|
body.byteStream().use { inputStream ->
|
||||||
|
@ -185,7 +185,7 @@ public open class ApiClient(public val baseUrl: String, public val client: Call.
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attention: if you are developing an android app that supports API Level 25 and bellow, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
// Attention: if you are developing an android app that supports API Level 25 and below, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
||||||
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
||||||
tempFile.deleteOnExit()
|
tempFile.deleteOnExit()
|
||||||
body.byteStream().use { inputStream ->
|
body.byteStream().use { inputStream ->
|
||||||
|
@ -184,7 +184,7 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attention: if you are developing an android app that supports API Level 25 and bellow, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
// Attention: if you are developing an android app that supports API Level 25 and below, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
||||||
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
||||||
tempFile.deleteOnExit()
|
tempFile.deleteOnExit()
|
||||||
body.byteStream().use { inputStream ->
|
body.byteStream().use { inputStream ->
|
||||||
|
@ -184,7 +184,7 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attention: if you are developing an android app that supports API Level 25 and bellow, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
// Attention: if you are developing an android app that supports API Level 25 and below, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
||||||
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
||||||
tempFile.deleteOnExit()
|
tempFile.deleteOnExit()
|
||||||
body.byteStream().use { inputStream ->
|
body.byteStream().use { inputStream ->
|
||||||
|
@ -187,7 +187,7 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attention: if you are developing an android app that supports API Level 25 and bellow, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
// Attention: if you are developing an android app that supports API Level 25 and below, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
||||||
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
||||||
tempFile.deleteOnExit()
|
tempFile.deleteOnExit()
|
||||||
body.byteStream().use { inputStream ->
|
body.byteStream().use { inputStream ->
|
||||||
|
@ -185,7 +185,7 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attention: if you are developing an android app that supports API Level 25 and bellow, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
// Attention: if you are developing an android app that supports API Level 25 and below, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
||||||
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
||||||
tempFile.deleteOnExit()
|
tempFile.deleteOnExit()
|
||||||
body.byteStream().use { inputStream ->
|
body.byteStream().use { inputStream ->
|
||||||
|
@ -185,7 +185,7 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attention: if you are developing an android app that supports API Level 25 and bellow, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
// Attention: if you are developing an android app that supports API Level 25 and below, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
||||||
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
||||||
tempFile.deleteOnExit()
|
tempFile.deleteOnExit()
|
||||||
body.byteStream().use { inputStream ->
|
body.byteStream().use { inputStream ->
|
||||||
|
@ -185,7 +185,7 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attention: if you are developing an android app that supports API Level 25 and bellow, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
// Attention: if you are developing an android app that supports API Level 25 and below, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
||||||
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
||||||
tempFile.deleteOnExit()
|
tempFile.deleteOnExit()
|
||||||
body.byteStream().use { inputStream ->
|
body.byteStream().use { inputStream ->
|
||||||
|
@ -185,7 +185,7 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attention: if you are developing an android app that supports API Level 25 and bellow, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
// Attention: if you are developing an android app that supports API Level 25 and below, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
||||||
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
||||||
tempFile.deleteOnExit()
|
tempFile.deleteOnExit()
|
||||||
body.byteStream().use { inputStream ->
|
body.byteStream().use { inputStream ->
|
||||||
|
@ -185,7 +185,7 @@ internal open class ApiClient(val baseUrl: String, val client: Call.Factory = de
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attention: if you are developing an android app that supports API Level 25 and bellow, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
// Attention: if you are developing an android app that supports API Level 25 and below, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
||||||
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
||||||
tempFile.deleteOnExit()
|
tempFile.deleteOnExit()
|
||||||
body.byteStream().use { inputStream ->
|
body.byteStream().use { inputStream ->
|
||||||
|
@ -185,7 +185,7 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attention: if you are developing an android app that supports API Level 25 and bellow, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
// Attention: if you are developing an android app that supports API Level 25 and below, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
||||||
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
||||||
tempFile.deleteOnExit()
|
tempFile.deleteOnExit()
|
||||||
body.byteStream().use { inputStream ->
|
body.byteStream().use { inputStream ->
|
||||||
|
@ -185,7 +185,7 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attention: if you are developing an android app that supports API Level 25 and bellow, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
// Attention: if you are developing an android app that supports API Level 25 and below, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
||||||
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
||||||
tempFile.deleteOnExit()
|
tempFile.deleteOnExit()
|
||||||
body.byteStream().use { inputStream ->
|
body.byteStream().use { inputStream ->
|
||||||
|
@ -185,7 +185,7 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attention: if you are developing an android app that supports API Level 25 and bellow, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
// Attention: if you are developing an android app that supports API Level 25 and below, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
||||||
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
||||||
tempFile.deleteOnExit()
|
tempFile.deleteOnExit()
|
||||||
body.byteStream().use { inputStream ->
|
body.byteStream().use { inputStream ->
|
||||||
|
@ -185,7 +185,7 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attention: if you are developing an android app that supports API Level 25 and bellow, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
// Attention: if you are developing an android app that supports API Level 25 and below, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
||||||
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
||||||
tempFile.deleteOnExit()
|
tempFile.deleteOnExit()
|
||||||
body.byteStream().use { inputStream ->
|
body.byteStream().use { inputStream ->
|
||||||
|
@ -185,7 +185,7 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attention: if you are developing an android app that supports API Level 25 and bellow, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
// Attention: if you are developing an android app that supports API Level 25 and below, please check flag supportAndroidApiLevel25AndBelow in https://openapi-generator.tech/docs/generators/kotlin#config-options
|
||||||
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
|
||||||
tempFile.deleteOnExit()
|
tempFile.deleteOnExit()
|
||||||
body.byteStream().use { inputStream ->
|
body.byteStream().use { inputStream ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user