forked from loafle/openapi-generator-original
[kotlin-client][jvm-spring-*] Fix runtime error in endpoints of type Unit (#17664)
* Fixed invalid extraction of response body in kotlin-client jvm-spring-* * Generated echo-api for kotlin-jvm-spring-3-restclient * Specific echo-api for Kotlin without allOf/anyOf * Specific echo-api for Kotlin without allOf/anyOf * Generated all samples * Added kotlin-jvm-spring-3-restclient sample to workflow * Fixed syntax problem
This commit is contained in:
@@ -82,7 +82,7 @@ class PetApi(client: WebClient) : ApiClient(client) {
|
||||
@Throws(WebClientResponseException::class)
|
||||
fun deletePet(petId: kotlin.Long, apiKey: kotlin.String? = null): Mono<Unit> {
|
||||
return deletePetWithHttpInfo(petId = petId, apiKey = apiKey)
|
||||
.map { it.body }
|
||||
.map { Unit }
|
||||
}
|
||||
|
||||
@Throws(WebClientResponseException::class)
|
||||
@@ -279,7 +279,7 @@ class PetApi(client: WebClient) : ApiClient(client) {
|
||||
@Throws(WebClientResponseException::class)
|
||||
fun updatePetWithForm(petId: kotlin.Long, name: kotlin.String? = null, status: kotlin.String? = null): Mono<Unit> {
|
||||
return updatePetWithFormWithHttpInfo(petId = petId, name = name, status = status)
|
||||
.map { it.body }
|
||||
.map { Unit }
|
||||
}
|
||||
|
||||
@Throws(WebClientResponseException::class)
|
||||
|
||||
@@ -44,7 +44,7 @@ class StoreApi(client: WebClient) : ApiClient(client) {
|
||||
@Throws(WebClientResponseException::class)
|
||||
fun deleteOrder(orderId: kotlin.String): Mono<Unit> {
|
||||
return deleteOrderWithHttpInfo(orderId = orderId)
|
||||
.map { it.body }
|
||||
.map { Unit }
|
||||
}
|
||||
|
||||
@Throws(WebClientResponseException::class)
|
||||
|
||||
@@ -44,7 +44,7 @@ class UserApi(client: WebClient) : ApiClient(client) {
|
||||
@Throws(WebClientResponseException::class)
|
||||
fun createUser(user: User): Mono<Unit> {
|
||||
return createUserWithHttpInfo(user = user)
|
||||
.map { it.body }
|
||||
.map { Unit }
|
||||
}
|
||||
|
||||
@Throws(WebClientResponseException::class)
|
||||
@@ -79,7 +79,7 @@ class UserApi(client: WebClient) : ApiClient(client) {
|
||||
@Throws(WebClientResponseException::class)
|
||||
fun createUsersWithArrayInput(user: kotlin.collections.List<User>): Mono<Unit> {
|
||||
return createUsersWithArrayInputWithHttpInfo(user = user)
|
||||
.map { it.body }
|
||||
.map { Unit }
|
||||
}
|
||||
|
||||
@Throws(WebClientResponseException::class)
|
||||
@@ -114,7 +114,7 @@ class UserApi(client: WebClient) : ApiClient(client) {
|
||||
@Throws(WebClientResponseException::class)
|
||||
fun createUsersWithListInput(user: kotlin.collections.List<User>): Mono<Unit> {
|
||||
return createUsersWithListInputWithHttpInfo(user = user)
|
||||
.map { it.body }
|
||||
.map { Unit }
|
||||
}
|
||||
|
||||
@Throws(WebClientResponseException::class)
|
||||
@@ -149,7 +149,7 @@ class UserApi(client: WebClient) : ApiClient(client) {
|
||||
@Throws(WebClientResponseException::class)
|
||||
fun deleteUser(username: kotlin.String): Mono<Unit> {
|
||||
return deleteUserWithHttpInfo(username = username)
|
||||
.map { it.body }
|
||||
.map { Unit }
|
||||
}
|
||||
|
||||
@Throws(WebClientResponseException::class)
|
||||
@@ -259,7 +259,7 @@ class UserApi(client: WebClient) : ApiClient(client) {
|
||||
@Throws(WebClientResponseException::class)
|
||||
fun logoutUser(): Mono<Unit> {
|
||||
return logoutUserWithHttpInfo()
|
||||
.map { it.body }
|
||||
.map { Unit }
|
||||
}
|
||||
|
||||
@Throws(WebClientResponseException::class)
|
||||
@@ -293,7 +293,7 @@ class UserApi(client: WebClient) : ApiClient(client) {
|
||||
@Throws(WebClientResponseException::class)
|
||||
fun updateUser(username: kotlin.String, user: User): Mono<Unit> {
|
||||
return updateUserWithHttpInfo(username = username, user = user)
|
||||
.map { it.body }
|
||||
.map { Unit }
|
||||
}
|
||||
|
||||
@Throws(WebClientResponseException::class)
|
||||
|
||||
Reference in New Issue
Block a user