Skip to content

Commit f99cf3b

Browse files
authored
[kotlin-client] fix collection delimiter (#24900)
1 parent fb7e361 commit f99cf3b

54 files changed

Lines changed: 108 additions & 108 deletions

File tree

  • modules/openapi-generator/src/main/resources/kotlin-client/infrastructure
  • samples/client
    • echo_api
      • kotlin-jvm-okhttp/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/infrastructure
    • others
      • kotlin-integer-enum/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-jvm-okhttp-non-ascii-headers/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-jvm-okhttp-parameter-tests/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-jvm-okhttp-path-comments/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-jvm-spring-3-restclient-nullable-return/src/main/kotlin/org/openapitools/client/infrastructure
    • petstore
      • kotlin-allOf-discriminator-kotlinx-serialization/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-allOf-discriminator/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-allOf-special-discriminator-kotlinx-serialization/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-array-integer-enum/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-array-nullable-items-multiplatform/src/commonMain/kotlin/org/openapitools/client/infrastructure
      • kotlin-array-nullable-items/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-array-simple-string-jvm-okhttp4/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-array-simple-string-multiplatform/src/commonMain/kotlin/org/openapitools/client/infrastructure
      • kotlin-bigdecimal-default-multiplatform/src/commonMain/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-default-values-multiplatform/src/commonMain/kotlin/org/openapitools/client/infrastructure
      • kotlin-enum-default-value/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-enum-integers-multiplatform/src/commonMain/kotlin/org/openapitools/client/infrastructure
      • kotlin-explicit/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-gson/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-jackson3/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-jackson/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-json-request-string/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-jvm-ktor-kotlinx_serialization/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/infrastructure
      • kotlin-jvm-spring-4-restclient-jackson3/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-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-multiplatform-allOf-discriminator/src/commonMain/kotlin/org/openapitools/client/infrastructure
      • kotlin-multiplatform-allOf-special-discriminator/src/commonMain/kotlin/org/openapitools/client/infrastructure
      • kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/infrastructure
      • kotlin-multiplatform/src/commonMain/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

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎modules/openapi-generator/src/main/resources/kotlin-client/infrastructure/ApiAbstractions.kt.mustache‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ package {{packageName}}.infrastructure
55
{{#nonPublicApi}}internal {{/nonPublicApi}}{{^nonPublicApi}}{{#explicitApi}}public {{/explicitApi}}{{/nonPublicApi}}fun collectionDelimiter(collectionFormat: String): String = when(collectionFormat) {
66
"csv" -> ","
77
"tsv" -> "\t"
8-
"pipe" -> "|"
9-
"space" -> " "
8+
"pipes" -> "|"
9+
"ssv" -> " "
1010
else -> ""
1111
}
1212

‎samples/client/echo_api/kotlin-jvm-okhttp/src/main/kotlin/org/openapitools/client/infrastructure/ApiAbstractions.kt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ typealias MultiValueMap = MutableMap<String,List<String>>
55
fun collectionDelimiter(collectionFormat: String): String = when(collectionFormat) {
66
"csv" -> ","
77
"tsv" -> "\t"
8-
"pipe" -> "|"
9-
"space" -> " "
8+
"pipes" -> "|"
9+
"ssv" -> " "
1010
else -> ""
1111
}
1212

‎samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/infrastructure/ApiAbstractions.kt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ typealias MultiValueMap = MutableMap<String,List<String>>
55
fun collectionDelimiter(collectionFormat: String): String = when(collectionFormat) {
66
"csv" -> ","
77
"tsv" -> "\t"
8-
"pipe" -> "|"
9-
"space" -> " "
8+
"pipes" -> "|"
9+
"ssv" -> " "
1010
else -> ""
1111
}
1212

‎samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/infrastructure/ApiAbstractions.kt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ typealias MultiValueMap = MutableMap<String,List<String>>
55
fun collectionDelimiter(collectionFormat: String): String = when(collectionFormat) {
66
"csv" -> ","
77
"tsv" -> "\t"
8-
"pipe" -> "|"
9-
"space" -> " "
8+
"pipes" -> "|"
9+
"ssv" -> " "
1010
else -> ""
1111
}
1212

‎samples/client/others/kotlin-integer-enum/src/main/kotlin/org/openapitools/client/infrastructure/ApiAbstractions.kt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ typealias MultiValueMap = MutableMap<String,List<String>>
55
fun collectionDelimiter(collectionFormat: String): String = when(collectionFormat) {
66
"csv" -> ","
77
"tsv" -> "\t"
8-
"pipe" -> "|"
9-
"space" -> " "
8+
"pipes" -> "|"
9+
"ssv" -> " "
1010
else -> ""
1111
}
1212

‎samples/client/others/kotlin-jvm-okhttp-non-ascii-headers/src/main/kotlin/org/openapitools/client/infrastructure/ApiAbstractions.kt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ typealias MultiValueMap = MutableMap<String,List<String>>
55
fun collectionDelimiter(collectionFormat: String): String = when(collectionFormat) {
66
"csv" -> ","
77
"tsv" -> "\t"
8-
"pipe" -> "|"
9-
"space" -> " "
8+
"pipes" -> "|"
9+
"ssv" -> " "
1010
else -> ""
1111
}
1212

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ typealias MultiValueMap = MutableMap<String,List<String>>
55
fun collectionDelimiter(collectionFormat: String): String = when(collectionFormat) {
66
"csv" -> ","
77
"tsv" -> "\t"
8-
"pipe" -> "|"
9-
"space" -> " "
8+
"pipes" -> "|"
9+
"ssv" -> " "
1010
else -> ""
1111
}
1212

‎samples/client/others/kotlin-jvm-okhttp-path-comments/src/main/kotlin/org/openapitools/client/infrastructure/ApiAbstractions.kt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ typealias MultiValueMap = MutableMap<String,List<String>>
55
fun collectionDelimiter(collectionFormat: String): String = when(collectionFormat) {
66
"csv" -> ","
77
"tsv" -> "\t"
8-
"pipe" -> "|"
9-
"space" -> " "
8+
"pipes" -> "|"
9+
"ssv" -> " "
1010
else -> ""
1111
}
1212

‎samples/client/others/kotlin-jvm-spring-3-restclient-nullable-return/src/main/kotlin/org/openapitools/client/infrastructure/ApiAbstractions.kt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ typealias MultiValueMap = MutableMap<String,List<String>>
55
fun collectionDelimiter(collectionFormat: String): String = when(collectionFormat) {
66
"csv" -> ","
77
"tsv" -> "\t"
8-
"pipe" -> "|"
9-
"space" -> " "
8+
"pipes" -> "|"
9+
"ssv" -> " "
1010
else -> ""
1111
}
1212

‎samples/client/petstore/kotlin-allOf-discriminator-kotlinx-serialization/src/main/kotlin/org/openapitools/client/infrastructure/ApiAbstractions.kt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ typealias MultiValueMap = MutableMap<String,List<String>>
55
fun collectionDelimiter(collectionFormat: String): String = when(collectionFormat) {
66
"csv" -> ","
77
"tsv" -> "\t"
8-
"pipe" -> "|"
9-
"space" -> " "
8+
"pipes" -> "|"
9+
"ssv" -> " "
1010
else -> ""
1111
}
1212

0 commit comments

Comments
 (0)