Skip to content

Commit 92e48ff

Browse files
committed
Merge branch 'master' of https://github.com/ckoegel/openapi-generator into ckoegel-content-type-java
2 parents 731bc05 + 7bce639 commit 92e48ff

File tree

79 files changed

+160
-687
lines changed

Some content is hidden

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

79 files changed

+160
-687
lines changed

.github/workflows/samples-aspnet-fastenpoints-server.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- samples/server/petstore/aspnet/fastendpoints-useValidators
2727
steps:
2828
- uses: actions/checkout@v4
29-
- uses: actions/setup-dotnet@v4.0.1
29+
- uses: actions/setup-dotnet@v4.1.0
3030
with:
3131
dotnet-version: '8.0.x'
3232
- name: Build

bin/configs/typescript-consolidated-inversify.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ additionalProperties:
88
useInversify: true
99
projectName: ts-petstore-client
1010
moduleName: petstore
11+
supportsES6: true

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -863,12 +863,6 @@ private void processMultiplatformLibrary(final String infrastructureFolder) {
863863
supportingFiles.add(new SupportingFile("auth/HttpBasicAuth.kt.mustache", authFolder, "HttpBasicAuth.kt"));
864864
supportingFiles.add(new SupportingFile("auth/HttpBearerAuth.kt.mustache", authFolder, "HttpBearerAuth.kt"));
865865
supportingFiles.add(new SupportingFile("auth/OAuth.kt.mustache", authFolder, "OAuth.kt"));
866-
867-
// multiplatform specific testing files
868-
supportingFiles.add(new SupportingFile("commonTest/Coroutine.kt.mustache", "src/commonTest/kotlin/util", "Coroutine.kt"));
869-
supportingFiles.add(new SupportingFile("iosTest/Coroutine.kt.mustache", "src/iosTest/kotlin/util", "Coroutine.kt"));
870-
supportingFiles.add(new SupportingFile("jsTest/Coroutine.kt.mustache", "src/jsTest/kotlin/util", "Coroutine.kt"));
871-
supportingFiles.add(new SupportingFile("jvmTest/Coroutine.kt.mustache", "src/jvmTest/kotlin/util", "Coroutine.kt"));
872866
}
873867

874868

modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-ktor/auth/HttpBasicAuth.kt.mustache

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
package {{packageName}}.auth
22

3-
import io.ktor.util.InternalAPI
43
import io.ktor.util.encodeBase64
54

65
{{^nonPublicApi}}{{#explicitApi}}public {{/explicitApi}}{{/nonPublicApi}}class HttpBasicAuth : Authentication {
76
{{^nonPublicApi}}{{#explicitApi}}public {{/explicitApi}}{{/nonPublicApi}}var username: String? = null
87
{{^nonPublicApi}}{{#explicitApi}}public {{/explicitApi}}{{/nonPublicApi}}var password: String? = null
98

10-
@OptIn(InternalAPI::class)
119
override fun apply(query: MutableMap<String, List<String>>, headers: MutableMap<String, String>) {
1210
if (username == null && password == null) return
1311
val str = (username ?: "") + ":" + (password ?: "")

modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/auth/HttpBasicAuth.kt.mustache

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
package {{packageName}}.auth
22

3-
import io.ktor.util.InternalAPI
43
import io.ktor.util.encodeBase64
54

65
{{^nonPublicApi}}{{#explicitApi}}public {{/explicitApi}}{{/nonPublicApi}}class HttpBasicAuth : Authentication {
76
{{^nonPublicApi}}{{#explicitApi}}public {{/explicitApi}}{{/nonPublicApi}}var username: String? = null
87
{{^nonPublicApi}}{{#explicitApi}}public {{/explicitApi}}{{/nonPublicApi}}var password: String? = null
98

10-
@OptIn(InternalAPI::class)
119
override fun apply(query: MutableMap<String, List<String>>, headers: MutableMap<String, String>) {
1210
if (username == null && password == null) return
1311
val str = (username ?: "") + ":" + (password ?: "")

modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/build.gradle.kts.mustache

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
22

33
plugins {
4-
kotlin("multiplatform"){{^omitGradlePluginVersions}} version "1.9.20" // kotlin_version{{/omitGradlePluginVersions}}
5-
kotlin("plugin.serialization"){{^omitGradlePluginVersions}} version "1.9.20" // kotlin_version{{/omitGradlePluginVersions}}
4+
kotlin("multiplatform"){{^omitGradlePluginVersions}} version "2.0.21" // kotlin_version{{/omitGradlePluginVersions}}
5+
kotlin("plugin.serialization"){{^omitGradlePluginVersions}} version "2.0.21" // kotlin_version{{/omitGradlePluginVersions}}
66
}
77

88
group = "{{groupId}}"
99
version = "{{artifactVersion}}"
1010

11-
val kotlin_version = "1.9.20"
12-
val coroutines_version = "1.7.3"
13-
val serialization_version = "1.6.1"
14-
val ktor_version = "2.3.6"
11+
val kotlin_version = "2.0.21"
12+
val coroutines_version = "1.9.0"
13+
val serialization_version = "1.7.3"
14+
val ktor_version = "3.0.1"
1515

1616
repositories {
1717
mavenCentral()

modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/commonTest/Coroutine.kt.mustache

Lines changed: 0 additions & 13 deletions
This file was deleted.

modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/iosTest/Coroutine.kt.mustache

Lines changed: 0 additions & 8 deletions
This file was deleted.

modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/jsTest/Coroutine.kt.mustache

Lines changed: 0 additions & 7 deletions
This file was deleted.

modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/jvmTest/Coroutine.kt.mustache

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)