forked from loafle/openapi-generator-original
[kotlin][client] rename ApiInfrastructureResponse to ApiResponse (#11094)
* rename ApiInfrastructureResponse to ApiResponse * mark ApiResponse as reserved word * update samples, docs * fix typo
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
|
||||
package org.openapitools.client.apis
|
||||
|
||||
import org.openapitools.client.models.ApiResponse
|
||||
import org.openapitools.client.models.ModelApiResponse
|
||||
import org.openapitools.client.models.Pet
|
||||
|
||||
import org.openapitools.client.infrastructure.*
|
||||
@@ -303,10 +303,10 @@ class PetApi(
|
||||
* @param petId ID of pet to update
|
||||
* @param additionalMetadata Additional data to pass to server (optional)
|
||||
* @param file file to upload (optional)
|
||||
* @return ApiResponse
|
||||
* @return ModelApiResponse
|
||||
*/
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
suspend fun uploadFile(petId: kotlin.Long, additionalMetadata: kotlin.String?, file: io.ktor.client.request.forms.InputProvider?): HttpResponse<ApiResponse> {
|
||||
suspend fun uploadFile(petId: kotlin.Long, additionalMetadata: kotlin.String?, file: io.ktor.client.request.forms.InputProvider?): HttpResponse<ModelApiResponse> {
|
||||
|
||||
val localVariableAuthNames = listOf<String>("petstore_auth")
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ import kotlinx.serialization.encoding.*
|
||||
* @param message
|
||||
*/
|
||||
@Serializable
|
||||
data class ApiResponse (
|
||||
data class ModelApiResponse (
|
||||
|
||||
@SerialName(value = "code") val code: kotlin.Int? = null,
|
||||
|
||||
Reference in New Issue
Block a user