diff --git a/modules/openapi-generator/src/main/resources/kotlin-server/data_class.mustache b/modules/openapi-generator/src/main/resources/kotlin-server/data_class.mustache
index d9e9d591b7b..e22559b5cc9 100644
--- a/modules/openapi-generator/src/main/resources/kotlin-server/data_class.mustache
+++ b/modules/openapi-generator/src/main/resources/kotlin-server/data_class.mustache
@@ -26,12 +26,12 @@ data class {{classname}} (
{
{{/vendorExtensions.x-has-data-class-body}}
{{#serializableModel}}
- companion object {
- private const val serialVersionUID: Long = 123
- }
+ companion object {
+ private const val serialVersionUID: Long = 123
+ }
{{/serializableModel}}
{{#hasEnums}}
- {{#vars}}
+ {{#vars}}
{{#isEnum}}
/**
* {{{description}}}
diff --git a/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-boot/buildGradleKts.mustache b/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-boot/buildGradleKts.mustache
index d4662668a3f..69c162d7b6f 100644
--- a/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-boot/buildGradleKts.mustache
+++ b/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-boot/buildGradleKts.mustache
@@ -32,16 +32,16 @@ plugins {
}
dependencies {
- val kotlinxCoroutinesVersion="1.2.0"
+ val kotlinxCoroutinesVersion="1.2.0"
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
compile("org.jetbrains.kotlin:kotlin-reflect")
{{^reactive}}
compile("org.springframework.boot:spring-boot-starter-web")
{{/reactive}}
{{#reactive}}
- compile("org.springframework.boot:spring-boot-starter-webflux")
- compile("org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinxCoroutinesVersion")
- compile("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:$kotlinxCoroutinesVersion")
+ compile("org.springframework.boot:spring-boot-starter-webflux")
+ compile("org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinxCoroutinesVersion")
+ compile("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:$kotlinxCoroutinesVersion")
{{/reactive}}
{{#swaggerAnnotations}}
compile("io.swagger:swagger-annotations:1.5.21")
@@ -55,12 +55,12 @@ dependencies {
exclude(module = "junit")
}
{{#reactive}}
- testCompile("org.jetbrains.kotlinx:kotlinx-coroutines-test:$kotlinxCoroutinesVersion")
+ testCompile("org.jetbrains.kotlinx:kotlinx-coroutines-test:$kotlinxCoroutinesVersion")
{{/reactive}}
}
repositories {
- maven { url = uri("https://repo1.maven.org/maven2") }
- maven { url = uri("https://repo.spring.io/snapshot") }
- maven { url = uri("https://repo.spring.io/milestone") }
+ maven { url = uri("https://repo1.maven.org/maven2") }
+ maven { url = uri("https://repo.spring.io/snapshot") }
+ maven { url = uri("https://repo.spring.io/milestone") }
}
diff --git a/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-boot/pom.mustache b/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-boot/pom.mustache
index 900532923cd..cfc42f1da0d 100644
--- a/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-boot/pom.mustache
+++ b/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-boot/pom.mustache
@@ -7,7 +7,7 @@
{{artifactVersion}}
1.3.30
- 1.2.0
+ 1.2.0
1.3.2
@@ -83,20 +83,20 @@
spring-boot-starter-web
{{/reactive}}
{{#reactive}}
- spring-boot-starter-webflux
+ spring-boot-starter-webflux
{{/reactive}}
{{#reactive}}
-
- org.jetbrains.kotlinx
- kotlinx-coroutines-core
- ${kotlinx-coroutines.version}
-
-
- org.jetbrains.kotlinx
- kotlinx-coroutines-reactor
- ${kotlinx-coroutines.version}
-
+
+ org.jetbrains.kotlinx
+ kotlinx-coroutines-core
+ ${kotlinx-coroutines.version}
+
+
+ org.jetbrains.kotlinx
+ kotlinx-coroutines-reactor
+ ${kotlinx-coroutines.version}
+
{{/reactive}}
{{#swaggerAnnotations}}
@@ -148,34 +148,34 @@
test
-
-
- spring-snapshots
- Spring Snapshots
- https://repo.spring.io/snapshot
-
- true
-
-
-
- spring-milestones
- Spring Milestones
- https://repo.spring.io/milestone
-
-
-
-
- spring-snapshots
- Spring Snapshots
- https://repo.spring.io/snapshot
-
- true
-
-
-
- spring-milestones
- Spring Milestones
- https://repo.spring.io/milestone
-
-
+
+
+ spring-snapshots
+ Spring Snapshots
+ https://repo.spring.io/snapshot
+
+ true
+
+
+
+ spring-milestones
+ Spring Milestones
+ https://repo.spring.io/milestone
+
+
+
+
+ spring-snapshots
+ Spring Snapshots
+ https://repo.spring.io/snapshot
+
+ true
+
+
+
+ spring-milestones
+ Spring Milestones
+ https://repo.spring.io/milestone
+
+
diff --git a/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-boot/settingsGradle.mustache b/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-boot/settingsGradle.mustache
index 290868e2793..fd23a36b903 100644
--- a/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-boot/settingsGradle.mustache
+++ b/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-boot/settingsGradle.mustache
@@ -1,15 +1,15 @@
pluginManagement {
- repositories {
- maven { url = uri("https://repo.spring.io/snapshot") }
- maven { url = uri("https://repo.spring.io/milestone") }
- gradlePluginPortal()
- }
- resolutionStrategy {
- eachPlugin {
- if (requested.id.id == "org.springframework.boot") {
- useModule("org.springframework.boot:spring-boot-gradle-plugin:${requested.version}")
- }
- }
- }
+ repositories {
+ maven { url = uri("https://repo.spring.io/snapshot") }
+ maven { url = uri("https://repo.spring.io/milestone") }
+ gradlePluginPortal()
+ }
+ resolutionStrategy {
+ eachPlugin {
+ if (requested.id.id == "org.springframework.boot") {
+ useModule("org.springframework.boot:spring-boot-gradle-plugin:${requested.version}")
+ }
+ }
+ }
}
-rootProject.name = "{{artifactId}}"
\ No newline at end of file
+rootProject.name = "{{artifactId}}"
diff --git a/modules/openapi-generator/src/main/resources/kotlin-spring/service.mustache b/modules/openapi-generator/src/main/resources/kotlin-spring/service.mustache
index b9da0db826b..becec2257ef 100644
--- a/modules/openapi-generator/src/main/resources/kotlin-spring/service.mustache
+++ b/modules/openapi-generator/src/main/resources/kotlin-spring/service.mustache
@@ -5,11 +5,12 @@ package {{package}}
{{#reactive}}
import kotlinx.coroutines.flow.Flow;
{{/reactive}}
+
{{#operations}}
interface {{classname}}Service {
{{#operation}}
- {{#reactive}}{{^isArray}}suspend {{/isArray}}{{/reactive}}fun {{operationId}}({{#allParams}}{{paramName}}: {{^isBodyParam}}{{>optionalDataType}}{{/isBodyParam}}{{#isBodyParam}}{{^reactive}}{{>optionalDataType}}{{/reactive}}{{#reactive}}{{^isArray}}{{>optionalDataType}}{{/isArray}}{{#isArray}}Flow<{{{baseType}}}>{{/isArray}}{{/reactive}}{{/isBodyParam}}{{^-last}}, {{/-last}}{{/allParams}}): {{>returnTypes}}
+ {{#reactive}}{{^isArray}}suspend {{/isArray}}{{/reactive}}fun {{operationId}}({{#allParams}}{{paramName}}: {{^isBodyParam}}{{>optionalDataType}}{{/isBodyParam}}{{#isBodyParam}}{{^reactive}}{{>optionalDataType}}{{/reactive}}{{#reactive}}{{^isArray}}{{>optionalDataType}}{{/isArray}}{{#isArray}}Flow<{{{baseType}}}>{{/isArray}}{{/reactive}}{{/isBodyParam}}{{^-last}}, {{/-last}}{{/allParams}}): {{>returnTypes}}
{{/operation}}
}
{{/operations}}
diff --git a/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/ApiResponse.kt b/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/ApiResponse.kt
index f5835ca6519..45760790990 100644
--- a/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/ApiResponse.kt
+++ b/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/ApiResponse.kt
@@ -25,8 +25,8 @@ data class ApiResponse (
val message: kotlin.String? = null
) : Serializable
{
- companion object {
- private const val serialVersionUID: Long = 123
- }
+ companion object {
+ private const val serialVersionUID: Long = 123
+ }
}
diff --git a/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/Category.kt b/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/Category.kt
index 4ca711e4ac1..ee26d4c76e5 100644
--- a/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/Category.kt
+++ b/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/Category.kt
@@ -23,8 +23,8 @@ data class Category (
val name: kotlin.String? = null
) : Serializable
{
- companion object {
- private const val serialVersionUID: Long = 123
- }
+ companion object {
+ private const val serialVersionUID: Long = 123
+ }
}
diff --git a/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/Order.kt b/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/Order.kt
index dd392773e96..7889abe12ee 100644
--- a/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/Order.kt
+++ b/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/Order.kt
@@ -32,9 +32,9 @@ data class Order (
val complete: kotlin.Boolean? = null
) : Serializable
{
- companion object {
- private const val serialVersionUID: Long = 123
- }
+ companion object {
+ private const val serialVersionUID: Long = 123
+ }
/**
* Order Status
* Values: placed,approved,delivered
diff --git a/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/Pet.kt b/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/Pet.kt
index b2286383f87..8dc13b7ea6e 100644
--- a/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/Pet.kt
+++ b/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/Pet.kt
@@ -34,9 +34,9 @@ data class Pet (
val status: Pet.Status? = null
) : Serializable
{
- companion object {
- private const val serialVersionUID: Long = 123
- }
+ companion object {
+ private const val serialVersionUID: Long = 123
+ }
/**
* pet status in the store
* Values: available,pending,sold
diff --git a/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/Tag.kt b/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/Tag.kt
index dab1c21898d..49c2887a503 100644
--- a/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/Tag.kt
+++ b/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/Tag.kt
@@ -23,8 +23,8 @@ data class Tag (
val name: kotlin.String? = null
) : Serializable
{
- companion object {
- private const val serialVersionUID: Long = 123
- }
+ companion object {
+ private const val serialVersionUID: Long = 123
+ }
}
diff --git a/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/User.kt b/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/User.kt
index 77f8f02f38a..dee8de740bd 100644
--- a/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/User.kt
+++ b/samples/server/petstore/kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models/User.kt
@@ -36,8 +36,8 @@ data class User (
val userStatus: kotlin.Int? = null
) : Serializable
{
- companion object {
- private const val serialVersionUID: Long = 123
- }
+ companion object {
+ private const val serialVersionUID: Long = 123
+ }
}
diff --git a/samples/server/petstore/kotlin-springboot-delegate/build.gradle.kts b/samples/server/petstore/kotlin-springboot-delegate/build.gradle.kts
index 49fe9400f70..d0e767d84cd 100644
--- a/samples/server/petstore/kotlin-springboot-delegate/build.gradle.kts
+++ b/samples/server/petstore/kotlin-springboot-delegate/build.gradle.kts
@@ -32,7 +32,7 @@ plugins {
}
dependencies {
- val kotlinxCoroutinesVersion="1.2.0"
+ val kotlinxCoroutinesVersion="1.2.0"
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
compile("org.jetbrains.kotlin:kotlin-reflect")
compile("org.springframework.boot:spring-boot-starter-web")
@@ -48,7 +48,7 @@ dependencies {
}
repositories {
- maven { url = uri("https://repo1.maven.org/maven2") }
- maven { url = uri("https://repo.spring.io/snapshot") }
- maven { url = uri("https://repo.spring.io/milestone") }
+ maven { url = uri("https://repo1.maven.org/maven2") }
+ maven { url = uri("https://repo.spring.io/snapshot") }
+ maven { url = uri("https://repo.spring.io/milestone") }
}
diff --git a/samples/server/petstore/kotlin-springboot-delegate/pom.xml b/samples/server/petstore/kotlin-springboot-delegate/pom.xml
index 8af5e943b3a..32a5347bada 100644
--- a/samples/server/petstore/kotlin-springboot-delegate/pom.xml
+++ b/samples/server/petstore/kotlin-springboot-delegate/pom.xml
@@ -7,7 +7,7 @@
1.0.0
1.3.30
- 1.2.0
+ 1.2.0
1.3.2
@@ -127,34 +127,34 @@
test
-
-
- spring-snapshots
- Spring Snapshots
- https://repo.spring.io/snapshot
-
- true
-
-
-
- spring-milestones
- Spring Milestones
- https://repo.spring.io/milestone
-
-
-
-
- spring-snapshots
- Spring Snapshots
- https://repo.spring.io/snapshot
-
- true
-
-
-
- spring-milestones
- Spring Milestones
- https://repo.spring.io/milestone
-
-
+
+
+ spring-snapshots
+ Spring Snapshots
+ https://repo.spring.io/snapshot
+
+ true
+
+
+
+ spring-milestones
+ Spring Milestones
+ https://repo.spring.io/milestone
+
+
+
+
+ spring-snapshots
+ Spring Snapshots
+ https://repo.spring.io/snapshot
+
+ true
+
+
+
+ spring-milestones
+ Spring Milestones
+ https://repo.spring.io/milestone
+
+
diff --git a/samples/server/petstore/kotlin-springboot-delegate/settings.gradle b/samples/server/petstore/kotlin-springboot-delegate/settings.gradle
index e9bd5d32d7c..14844905cd4 100644
--- a/samples/server/petstore/kotlin-springboot-delegate/settings.gradle
+++ b/samples/server/petstore/kotlin-springboot-delegate/settings.gradle
@@ -1,15 +1,15 @@
pluginManagement {
- repositories {
- maven { url = uri("https://repo.spring.io/snapshot") }
- maven { url = uri("https://repo.spring.io/milestone") }
- gradlePluginPortal()
- }
- resolutionStrategy {
- eachPlugin {
- if (requested.id.id == "org.springframework.boot") {
- useModule("org.springframework.boot:spring-boot-gradle-plugin:${requested.version}")
- }
- }
- }
+ repositories {
+ maven { url = uri("https://repo.spring.io/snapshot") }
+ maven { url = uri("https://repo.spring.io/milestone") }
+ gradlePluginPortal()
+ }
+ resolutionStrategy {
+ eachPlugin {
+ if (requested.id.id == "org.springframework.boot") {
+ useModule("org.springframework.boot:spring-boot-gradle-plugin:${requested.version}")
+ }
+ }
+ }
}
-rootProject.name = "openapi-spring"
\ No newline at end of file
+rootProject.name = "openapi-spring"
diff --git a/samples/server/petstore/kotlin-springboot-reactive/build.gradle.kts b/samples/server/petstore/kotlin-springboot-reactive/build.gradle.kts
index 682bfec8aa1..24ed63f61f8 100644
--- a/samples/server/petstore/kotlin-springboot-reactive/build.gradle.kts
+++ b/samples/server/petstore/kotlin-springboot-reactive/build.gradle.kts
@@ -32,12 +32,12 @@ plugins {
}
dependencies {
- val kotlinxCoroutinesVersion="1.2.0"
+ val kotlinxCoroutinesVersion="1.2.0"
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
compile("org.jetbrains.kotlin:kotlin-reflect")
- compile("org.springframework.boot:spring-boot-starter-webflux")
- compile("org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinxCoroutinesVersion")
- compile("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:$kotlinxCoroutinesVersion")
+ compile("org.springframework.boot:spring-boot-starter-webflux")
+ compile("org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinxCoroutinesVersion")
+ compile("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:$kotlinxCoroutinesVersion")
compile("io.swagger:swagger-annotations:1.5.21")
compile("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml")
compile("com.fasterxml.jackson.dataformat:jackson-dataformat-xml")
@@ -47,11 +47,11 @@ dependencies {
testCompile("org.springframework.boot:spring-boot-starter-test") {
exclude(module = "junit")
}
- testCompile("org.jetbrains.kotlinx:kotlinx-coroutines-test:$kotlinxCoroutinesVersion")
+ testCompile("org.jetbrains.kotlinx:kotlinx-coroutines-test:$kotlinxCoroutinesVersion")
}
repositories {
- maven { url = uri("https://repo1.maven.org/maven2") }
- maven { url = uri("https://repo.spring.io/snapshot") }
- maven { url = uri("https://repo.spring.io/milestone") }
+ maven { url = uri("https://repo1.maven.org/maven2") }
+ maven { url = uri("https://repo.spring.io/snapshot") }
+ maven { url = uri("https://repo.spring.io/milestone") }
}
diff --git a/samples/server/petstore/kotlin-springboot-reactive/pom.xml b/samples/server/petstore/kotlin-springboot-reactive/pom.xml
index cfbc66f6dc9..17b60380752 100644
--- a/samples/server/petstore/kotlin-springboot-reactive/pom.xml
+++ b/samples/server/petstore/kotlin-springboot-reactive/pom.xml
@@ -7,7 +7,7 @@
1.0.0
1.3.30
- 1.2.0
+ 1.2.0
1.3.2
@@ -79,18 +79,18 @@
org.springframework.boot
- spring-boot-starter-webflux
+ spring-boot-starter-webflux
+
+
+ org.jetbrains.kotlinx
+ kotlinx-coroutines-core
+ ${kotlinx-coroutines.version}
+
+
+ org.jetbrains.kotlinx
+ kotlinx-coroutines-reactor
+ ${kotlinx-coroutines.version}
-
- org.jetbrains.kotlinx
- kotlinx-coroutines-core
- ${kotlinx-coroutines.version}
-
-
- org.jetbrains.kotlinx
- kotlinx-coroutines-reactor
- ${kotlinx-coroutines.version}
-
io.swagger
@@ -137,34 +137,34 @@
test
-
-
- spring-snapshots
- Spring Snapshots
- https://repo.spring.io/snapshot
-
- true
-
-
-
- spring-milestones
- Spring Milestones
- https://repo.spring.io/milestone
-
-
-
-
- spring-snapshots
- Spring Snapshots
- https://repo.spring.io/snapshot
-
- true
-
-
-
- spring-milestones
- Spring Milestones
- https://repo.spring.io/milestone
-
-
+
+
+ spring-snapshots
+ Spring Snapshots
+ https://repo.spring.io/snapshot
+
+ true
+
+
+
+ spring-milestones
+ Spring Milestones
+ https://repo.spring.io/milestone
+
+
+
+
+ spring-snapshots
+ Spring Snapshots
+ https://repo.spring.io/snapshot
+
+ true
+
+
+
+ spring-milestones
+ Spring Milestones
+ https://repo.spring.io/milestone
+
+
diff --git a/samples/server/petstore/kotlin-springboot-reactive/settings.gradle b/samples/server/petstore/kotlin-springboot-reactive/settings.gradle
index e9bd5d32d7c..14844905cd4 100644
--- a/samples/server/petstore/kotlin-springboot-reactive/settings.gradle
+++ b/samples/server/petstore/kotlin-springboot-reactive/settings.gradle
@@ -1,15 +1,15 @@
pluginManagement {
- repositories {
- maven { url = uri("https://repo.spring.io/snapshot") }
- maven { url = uri("https://repo.spring.io/milestone") }
- gradlePluginPortal()
- }
- resolutionStrategy {
- eachPlugin {
- if (requested.id.id == "org.springframework.boot") {
- useModule("org.springframework.boot:spring-boot-gradle-plugin:${requested.version}")
- }
- }
- }
+ repositories {
+ maven { url = uri("https://repo.spring.io/snapshot") }
+ maven { url = uri("https://repo.spring.io/milestone") }
+ gradlePluginPortal()
+ }
+ resolutionStrategy {
+ eachPlugin {
+ if (requested.id.id == "org.springframework.boot") {
+ useModule("org.springframework.boot:spring-boot-gradle-plugin:${requested.version}")
+ }
+ }
+ }
}
-rootProject.name = "openapi-spring"
\ No newline at end of file
+rootProject.name = "openapi-spring"
diff --git a/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/api/PetApiService.kt b/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/api/PetApiService.kt
index 572dfddca6a..082f75c0fe3 100644
--- a/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/api/PetApiService.kt
+++ b/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/api/PetApiService.kt
@@ -3,21 +3,22 @@ package org.openapitools.api
import org.openapitools.model.ModelApiResponse
import org.openapitools.model.Pet
import kotlinx.coroutines.flow.Flow;
+
interface PetApiService {
- suspend fun addPet(body: Pet): Unit
+ suspend fun addPet(body: Pet): Unit
- suspend fun deletePet(petId: kotlin.Long, apiKey: kotlin.String?): Unit
+ suspend fun deletePet(petId: kotlin.Long, apiKey: kotlin.String?): Unit
- fun findPetsByStatus(status: kotlin.collections.List): Flow
+ fun findPetsByStatus(status: kotlin.collections.List): Flow
- fun findPetsByTags(tags: kotlin.collections.List): Flow
+ fun findPetsByTags(tags: kotlin.collections.List): Flow
- suspend fun getPetById(petId: kotlin.Long): Pet
+ suspend fun getPetById(petId: kotlin.Long): Pet
- suspend fun updatePet(body: Pet): Unit
+ suspend fun updatePet(body: Pet): Unit
- suspend fun updatePetWithForm(petId: kotlin.Long, name: kotlin.String?, status: kotlin.String?): Unit
+ suspend fun updatePetWithForm(petId: kotlin.Long, name: kotlin.String?, status: kotlin.String?): Unit
- suspend fun uploadFile(petId: kotlin.Long, additionalMetadata: kotlin.String?, file: org.springframework.core.io.Resource?): ModelApiResponse
+ suspend fun uploadFile(petId: kotlin.Long, additionalMetadata: kotlin.String?, file: org.springframework.core.io.Resource?): ModelApiResponse
}
diff --git a/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/api/StoreApiService.kt b/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/api/StoreApiService.kt
index fbc5b1729e4..5dbae34663c 100644
--- a/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/api/StoreApiService.kt
+++ b/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/api/StoreApiService.kt
@@ -2,13 +2,14 @@ package org.openapitools.api
import org.openapitools.model.Order
import kotlinx.coroutines.flow.Flow;
+
interface StoreApiService {
- suspend fun deleteOrder(orderId: kotlin.String): Unit
+ suspend fun deleteOrder(orderId: kotlin.String): Unit
- suspend fun getInventory(): Map
+ suspend fun getInventory(): Map
- suspend fun getOrderById(orderId: kotlin.Long): Order
+ suspend fun getOrderById(orderId: kotlin.Long): Order
- suspend fun placeOrder(body: Order): Order
+ suspend fun placeOrder(body: Order): Order
}
diff --git a/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/api/UserApiService.kt b/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/api/UserApiService.kt
index ceb24849483..475862547b5 100644
--- a/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/api/UserApiService.kt
+++ b/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/api/UserApiService.kt
@@ -2,21 +2,22 @@ package org.openapitools.api
import org.openapitools.model.User
import kotlinx.coroutines.flow.Flow;
+
interface UserApiService {
- suspend fun createUser(body: User): Unit
+ suspend fun createUser(body: User): Unit
- suspend fun createUsersWithArrayInput(body: Flow): Unit
+ suspend fun createUsersWithArrayInput(body: Flow): Unit
- suspend fun createUsersWithListInput(body: Flow): Unit
+ suspend fun createUsersWithListInput(body: Flow): Unit
- suspend fun deleteUser(username: kotlin.String): Unit
+ suspend fun deleteUser(username: kotlin.String): Unit
- suspend fun getUserByName(username: kotlin.String): User
+ suspend fun getUserByName(username: kotlin.String): User
- suspend fun loginUser(username: kotlin.String, password: kotlin.String): kotlin.String
+ suspend fun loginUser(username: kotlin.String, password: kotlin.String): kotlin.String
- suspend fun logoutUser(): Unit
+ suspend fun logoutUser(): Unit
- suspend fun updateUser(username: kotlin.String, body: User): Unit
+ suspend fun updateUser(username: kotlin.String, body: User): Unit
}
diff --git a/samples/server/petstore/kotlin-springboot/build.gradle.kts b/samples/server/petstore/kotlin-springboot/build.gradle.kts
index 49fe9400f70..d0e767d84cd 100644
--- a/samples/server/petstore/kotlin-springboot/build.gradle.kts
+++ b/samples/server/petstore/kotlin-springboot/build.gradle.kts
@@ -32,7 +32,7 @@ plugins {
}
dependencies {
- val kotlinxCoroutinesVersion="1.2.0"
+ val kotlinxCoroutinesVersion="1.2.0"
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
compile("org.jetbrains.kotlin:kotlin-reflect")
compile("org.springframework.boot:spring-boot-starter-web")
@@ -48,7 +48,7 @@ dependencies {
}
repositories {
- maven { url = uri("https://repo1.maven.org/maven2") }
- maven { url = uri("https://repo.spring.io/snapshot") }
- maven { url = uri("https://repo.spring.io/milestone") }
+ maven { url = uri("https://repo1.maven.org/maven2") }
+ maven { url = uri("https://repo.spring.io/snapshot") }
+ maven { url = uri("https://repo.spring.io/milestone") }
}
diff --git a/samples/server/petstore/kotlin-springboot/pom.xml b/samples/server/petstore/kotlin-springboot/pom.xml
index 8af5e943b3a..32a5347bada 100644
--- a/samples/server/petstore/kotlin-springboot/pom.xml
+++ b/samples/server/petstore/kotlin-springboot/pom.xml
@@ -7,7 +7,7 @@
1.0.0
1.3.30
- 1.2.0
+ 1.2.0
1.3.2
@@ -127,34 +127,34 @@
test
-
-
- spring-snapshots
- Spring Snapshots
- https://repo.spring.io/snapshot
-
- true
-
-
-
- spring-milestones
- Spring Milestones
- https://repo.spring.io/milestone
-
-
-
-
- spring-snapshots
- Spring Snapshots
- https://repo.spring.io/snapshot
-
- true
-
-
-
- spring-milestones
- Spring Milestones
- https://repo.spring.io/milestone
-
-
+
+
+ spring-snapshots
+ Spring Snapshots
+ https://repo.spring.io/snapshot
+
+ true
+
+
+
+ spring-milestones
+ Spring Milestones
+ https://repo.spring.io/milestone
+
+
+
+
+ spring-snapshots
+ Spring Snapshots
+ https://repo.spring.io/snapshot
+
+ true
+
+
+
+ spring-milestones
+ Spring Milestones
+ https://repo.spring.io/milestone
+
+
diff --git a/samples/server/petstore/kotlin-springboot/settings.gradle b/samples/server/petstore/kotlin-springboot/settings.gradle
index e9bd5d32d7c..14844905cd4 100644
--- a/samples/server/petstore/kotlin-springboot/settings.gradle
+++ b/samples/server/petstore/kotlin-springboot/settings.gradle
@@ -1,15 +1,15 @@
pluginManagement {
- repositories {
- maven { url = uri("https://repo.spring.io/snapshot") }
- maven { url = uri("https://repo.spring.io/milestone") }
- gradlePluginPortal()
- }
- resolutionStrategy {
- eachPlugin {
- if (requested.id.id == "org.springframework.boot") {
- useModule("org.springframework.boot:spring-boot-gradle-plugin:${requested.version}")
- }
- }
- }
+ repositories {
+ maven { url = uri("https://repo.spring.io/snapshot") }
+ maven { url = uri("https://repo.spring.io/milestone") }
+ gradlePluginPortal()
+ }
+ resolutionStrategy {
+ eachPlugin {
+ if (requested.id.id == "org.springframework.boot") {
+ useModule("org.springframework.boot:spring-boot-gradle-plugin:${requested.version}")
+ }
+ }
+ }
}
-rootProject.name = "openapi-spring"
\ No newline at end of file
+rootProject.name = "openapi-spring"
diff --git a/samples/server/petstore/kotlin-springboot/src/main/kotlin/org/openapitools/api/PetApiService.kt b/samples/server/petstore/kotlin-springboot/src/main/kotlin/org/openapitools/api/PetApiService.kt
index f3f2fd68b6c..b96e86aff1b 100644
--- a/samples/server/petstore/kotlin-springboot/src/main/kotlin/org/openapitools/api/PetApiService.kt
+++ b/samples/server/petstore/kotlin-springboot/src/main/kotlin/org/openapitools/api/PetApiService.kt
@@ -2,21 +2,22 @@ package org.openapitools.api
import org.openapitools.model.ModelApiResponse
import org.openapitools.model.Pet
+
interface PetApiService {
- fun addPet(body: Pet): Unit
+ fun addPet(body: Pet): Unit
- fun deletePet(petId: kotlin.Long, apiKey: kotlin.String?): Unit
+ fun deletePet(petId: kotlin.Long, apiKey: kotlin.String?): Unit
- fun findPetsByStatus(status: kotlin.collections.List): List
+ fun findPetsByStatus(status: kotlin.collections.List): List
- fun findPetsByTags(tags: kotlin.collections.List): List
+ fun findPetsByTags(tags: kotlin.collections.List): List
- fun getPetById(petId: kotlin.Long): Pet
+ fun getPetById(petId: kotlin.Long): Pet
- fun updatePet(body: Pet): Unit
+ fun updatePet(body: Pet): Unit
- fun updatePetWithForm(petId: kotlin.Long, name: kotlin.String?, status: kotlin.String?): Unit
+ fun updatePetWithForm(petId: kotlin.Long, name: kotlin.String?, status: kotlin.String?): Unit
- fun uploadFile(petId: kotlin.Long, additionalMetadata: kotlin.String?, file: org.springframework.core.io.Resource?): ModelApiResponse
+ fun uploadFile(petId: kotlin.Long, additionalMetadata: kotlin.String?, file: org.springframework.core.io.Resource?): ModelApiResponse
}
diff --git a/samples/server/petstore/kotlin-springboot/src/main/kotlin/org/openapitools/api/StoreApiService.kt b/samples/server/petstore/kotlin-springboot/src/main/kotlin/org/openapitools/api/StoreApiService.kt
index d4a4ef9507f..e67a66c4f7e 100644
--- a/samples/server/petstore/kotlin-springboot/src/main/kotlin/org/openapitools/api/StoreApiService.kt
+++ b/samples/server/petstore/kotlin-springboot/src/main/kotlin/org/openapitools/api/StoreApiService.kt
@@ -1,13 +1,14 @@
package org.openapitools.api
import org.openapitools.model.Order
+
interface StoreApiService {
- fun deleteOrder(orderId: kotlin.String): Unit
+ fun deleteOrder(orderId: kotlin.String): Unit
- fun getInventory(): Map
+ fun getInventory(): Map
- fun getOrderById(orderId: kotlin.Long): Order
+ fun getOrderById(orderId: kotlin.Long): Order
- fun placeOrder(body: Order): Order
+ fun placeOrder(body: Order): Order
}
diff --git a/samples/server/petstore/kotlin-springboot/src/main/kotlin/org/openapitools/api/UserApiService.kt b/samples/server/petstore/kotlin-springboot/src/main/kotlin/org/openapitools/api/UserApiService.kt
index 491705c3b50..40148efeb72 100644
--- a/samples/server/petstore/kotlin-springboot/src/main/kotlin/org/openapitools/api/UserApiService.kt
+++ b/samples/server/petstore/kotlin-springboot/src/main/kotlin/org/openapitools/api/UserApiService.kt
@@ -1,21 +1,22 @@
package org.openapitools.api
import org.openapitools.model.User
+
interface UserApiService {
- fun createUser(body: User): Unit
+ fun createUser(body: User): Unit
- fun createUsersWithArrayInput(body: kotlin.collections.List): Unit
+ fun createUsersWithArrayInput(body: kotlin.collections.List): Unit
- fun createUsersWithListInput(body: kotlin.collections.List): Unit
+ fun createUsersWithListInput(body: kotlin.collections.List): Unit
- fun deleteUser(username: kotlin.String): Unit
+ fun deleteUser(username: kotlin.String): Unit
- fun getUserByName(username: kotlin.String): User
+ fun getUserByName(username: kotlin.String): User
- fun loginUser(username: kotlin.String, password: kotlin.String): kotlin.String
+ fun loginUser(username: kotlin.String, password: kotlin.String): kotlin.String
- fun logoutUser(): Unit
+ fun logoutUser(): Unit
- fun updateUser(username: kotlin.String, body: User): Unit
+ fun updateUser(username: kotlin.String, body: User): Unit
}