Skip to content

Commit 3a37ba3

Browse files
authored
Fix typo "bellow" (#20268)
* Fix typo in constant name: s/BELLOW/BELOW/ * Fix typo ('bellow') in docs, comments and strings
1 parent d29196a commit 3a37ba3

File tree

28 files changed

+29
-29
lines changed
  • docs/generators
  • modules/openapi-generator/src
  • samples/client
    • echo_api/java/feign-gson
    • others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure
    • petstore
      • java
      • kotlin-allOff-discriminator/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-array-simple-string-jvm-okhttp4/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-bigdecimal-default-okhttp4/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-default-values-jvm-okhttp4/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-enum-default-value/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-explicit/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-gson/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-jackson/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-modelMutable/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-name-parameter-mappings/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-nonpublic/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-nullable/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-string/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-threetenbp/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-uppercase-enum/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin/src/main/kotlin/org/openapitools/client/infrastructure

28 files changed

+29
-29
lines changed

docs/generators/kotlin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
4747
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |null|
4848
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |null|
4949
|sourceFolder|source folder for generated code| |src/main/kotlin|
50-
|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|
50+
|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|
5151
|useCoroutines|Whether to use the Coroutines adapter with the retrofit2 library.| |false|
5252
|useRxJava3|Whether to use the RxJava3 adapter with the retrofit2 library.| |false|
5353
|useSettingsGradle|Whether the project uses settings.gradle.| |false|

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public class KotlinClientCodegen extends AbstractKotlinCodegen {
9393
public static final String EXPLICIT_API = "explicitApi";
9494
public static final String NULLABLE_RETURN_TYPE = "nullableReturnType";
9595

96-
public static final String SUPPORT_ANDROID_API_LEVEL_25_AND_BELLOW = "supportAndroidApiLevel25AndBelow";
96+
public static final String SUPPORT_ANDROID_API_LEVEL_25_AND_BELOW = "supportAndroidApiLevel25AndBelow";
9797

9898
public static final String MAP_FILE_BINARY_TO_BYTE_ARRAY = "mapFileBinaryToByteArray";
9999

@@ -275,7 +275,7 @@ public KotlinClientCodegen() {
275275

276276
cliOptions.add(CliOption.newBoolean(GENERATE_ROOM_MODELS, "Generate Android Room database models in addition to API models (JVM Volley library only)", false));
277277

278-
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"));
278+
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"));
279279

280280
cliOptions.add(new CliOption(MAP_FILE_BINARY_TO_BYTE_ARRAY, "Map File and Binary to ByteArray (default: false)").defaultValue(Boolean.FALSE.toString()));
281281

modules/openapi-generator/src/main/resources/Java/libraries/feign/README.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ After the client library is installed/deployed, you can use it in your Maven pro
3232

3333
```
3434

35-
And to use the api you can follow the examples bellow:
35+
And to use the api you can follow the examples below:
3636

3737
```java
3838

modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-okhttp/infrastructure/ApiClient.kt.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ import com.squareup.moshi.adapter
228228
}
229229

230230
{{^supportAndroidApiLevel25AndBelow}}
231-
// 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
231+
// 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
232232
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
233233
{{/supportAndroidApiLevel25AndBelow}}
234234
{{#supportAndroidApiLevel25AndBelow}}

modules/openapi-generator/src/test/resources/3_0/tags.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ paths:
9090
responses:
9191
'200':
9292
description: Ok
93-
# Section bellow is requested because of issue #436
93+
# Section below is requested because of issue #436
9494
components:
9595
schemas:
9696
SomeObj:

samples/client/echo_api/java/feign-gson/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ After the client library is installed/deployed, you can use it in your Maven pro
3232

3333
```
3434

35-
And to use the api you can follow the examples bellow:
35+
And to use the api you can follow the examples below:
3636

3737
```java
3838

samples/client/others/kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
185185
}
186186
}
187187

188-
// 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
188+
// 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
189189
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
190190
tempFile.deleteOnExit()
191191
body.byteStream().use { inputStream ->

samples/client/petstore/java/feign-no-nullable/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ After the client library is installed/deployed, you can use it in your Maven pro
3232

3333
```
3434

35-
And to use the api you can follow the examples bellow:
35+
And to use the api you can follow the examples below:
3636

3737
```java
3838

samples/client/petstore/java/feign/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ After the client library is installed/deployed, you can use it in your Maven pro
3232

3333
```
3434

35-
And to use the api you can follow the examples bellow:
35+
And to use the api you can follow the examples below:
3636

3737
```java
3838

samples/client/petstore/kotlin-allOff-discriminator/src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClie
185185
}
186186
}
187187

188-
// 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
188+
// 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
189189
val tempFile = java.nio.file.Files.createTempFile(prefix, suffix).toFile()
190190
tempFile.deleteOnExit()
191191
body.byteStream().use { inputStream ->

0 commit comments

Comments
 (0)