diff --git a/docs/generators/kotlin.md b/docs/generators/kotlin.md index af5c9a3f8743..19f4a5174211 100644 --- a/docs/generators/kotlin.md +++ b/docs/generators/kotlin.md @@ -8,7 +8,7 @@ sidebar_label: kotlin |apiSuffix|suffix for api classes| |Api| |artifactId|Generated artifact id (name of jar).| |kotlin-client| |artifactVersion|Generated artifact's package version.| |1.0.0| -|collectionType|Option. Collection type to use|
**array**
kotlin.Array
**list**
kotlin.collections.List
|array| +|collectionType|Option. Collection type to use|
**array**
kotlin.Array
**list**
kotlin.collections.List
|list| |dateLibrary|Option. Date library to use|
**threetenbp-localdatetime**
Threetenbp - Backport of JSR310 (jvm only, for legacy app only)
**string**
String
**java8-localdatetime**
Java 8 native JSR310 (jvm only, for legacy app only)
**java8**
Java 8 native JSR310 (jvm only, preferred for jdk 1.8+)
**threetenbp**
Threetenbp - Backport of JSR310 (jvm only, preferred for jdk < 1.8)
|java8| |enumPropertyNaming|Naming convention for enum properties: 'camelCase', 'PascalCase', 'snake_case', 'UPPERCASE', and 'original'| |camelCase| |groupId|Generated artifact package's organization (i.e. maven groupId).| |org.openapitools| diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java index 8bfc119e766d..96eccd51021c 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java @@ -25,23 +25,7 @@ import com.samskivert.mustache.Mustache; import com.samskivert.mustache.Mustache.Compiler; import com.samskivert.mustache.Mustache.Lambda; -import io.swagger.v3.core.util.Json; -import io.swagger.v3.oas.models.OpenAPI; -import io.swagger.v3.oas.models.Operation; -import io.swagger.v3.oas.models.PathItem; -import io.swagger.v3.oas.models.callbacks.Callback; -import io.swagger.v3.oas.models.examples.Example; -import io.swagger.v3.oas.models.headers.Header; -import io.swagger.v3.oas.models.media.*; -import io.swagger.v3.oas.models.parameters.*; -import io.swagger.v3.oas.models.responses.ApiResponse; -import io.swagger.v3.oas.models.responses.ApiResponses; -import io.swagger.v3.oas.models.security.OAuthFlow; -import io.swagger.v3.oas.models.security.OAuthFlows; -import io.swagger.v3.oas.models.security.SecurityScheme; -import io.swagger.v3.oas.models.servers.Server; -import io.swagger.v3.oas.models.servers.ServerVariable; -import io.swagger.v3.parser.util.SchemaTypeUtil; + import org.apache.commons.lang3.ObjectUtils; import org.apache.commons.lang3.StringEscapeUtils; import org.apache.commons.lang3.StringUtils; @@ -59,7 +43,6 @@ import org.openapitools.codegen.templating.mustache.*; import org.openapitools.codegen.utils.ModelUtils; import org.openapitools.codegen.utils.OneOfImplementorAdditionalData; -import org.openapitools.codegen.utils.SemVer; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -73,6 +56,24 @@ import java.util.stream.Collectors; import java.util.stream.Stream; +import io.swagger.v3.core.util.Json; +import io.swagger.v3.oas.models.OpenAPI; +import io.swagger.v3.oas.models.Operation; +import io.swagger.v3.oas.models.PathItem; +import io.swagger.v3.oas.models.callbacks.Callback; +import io.swagger.v3.oas.models.examples.Example; +import io.swagger.v3.oas.models.headers.Header; +import io.swagger.v3.oas.models.media.*; +import io.swagger.v3.oas.models.parameters.*; +import io.swagger.v3.oas.models.responses.ApiResponse; +import io.swagger.v3.oas.models.responses.ApiResponses; +import io.swagger.v3.oas.models.security.OAuthFlow; +import io.swagger.v3.oas.models.security.OAuthFlows; +import io.swagger.v3.oas.models.security.SecurityScheme; +import io.swagger.v3.oas.models.servers.Server; +import io.swagger.v3.oas.models.servers.ServerVariable; +import io.swagger.v3.parser.util.SchemaTypeUtil; + import static org.openapitools.codegen.utils.OnceLogger.once; import static org.openapitools.codegen.utils.StringUtils.*; diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractKotlinCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractKotlinCodegen.java index 347ce1d07cfb..6c6ba19bb120 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractKotlinCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractKotlinCodegen.java @@ -158,7 +158,7 @@ public AbstractKotlinCodegen() { typeMapping.put("set", "kotlin.collections.Set"); typeMapping.put("map", "kotlin.collections.Map"); typeMapping.put("object", "kotlin.Any"); - typeMapping.put("binary", "kotlin.Array"); + typeMapping.put("binary", "kotlin.ByteArray"); typeMapping.put("Date", "java.time.LocalDate"); typeMapping.put("DateTime", "java.time.LocalDateTime"); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java index fa53b2dfc906..85a2956fc4f7 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java @@ -62,7 +62,7 @@ public class KotlinClientCodegen extends AbstractKotlinCodegen { protected String dateLibrary = DateLibrary.JAVA8.value; protected String requestDateConverter = RequestDateConverter.TO_JSON.value; - protected String collectionType = CollectionType.ARRAY.value; + protected String collectionType = CollectionType.LIST.value; protected boolean useRxJava = false; protected boolean useRxJava2 = false; protected boolean useCoroutines = false; @@ -593,6 +593,10 @@ public Map postProcessOperationsWithModels(Map o List ops = (List) operations.get("operation"); for (CodegenOperation operation : ops) { + if (JVM_RETROFIT2.equals(getLibrary()) && StringUtils.isNotEmpty(operation.path) && operation.path.startsWith("/")) { + operation.path = operation.path.substring(1); + } + // set multipart against all relevant operations if (operation.hasConsumes == Boolean.TRUE) { if (isMultipartType(operation.consumes)) { diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinSpringServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinSpringServerCodegen.java index 7d142d8a244a..909c1f59cf20 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinSpringServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinSpringServerCodegen.java @@ -18,12 +18,9 @@ import com.google.common.collect.ImmutableMap.Builder; import com.samskivert.mustache.Mustache; -import com.samskivert.mustache.Template; import com.samskivert.mustache.Mustache.Lambda; +import com.samskivert.mustache.Template; -import io.swagger.v3.oas.models.OpenAPI; -import io.swagger.v3.oas.models.Operation; -import io.swagger.v3.oas.models.media.Schema; import org.openapitools.codegen.*; import org.openapitools.codegen.languages.features.BeanValidationFeatures; import org.openapitools.codegen.meta.features.*; @@ -37,7 +34,9 @@ import java.net.URL; import java.util.*; import java.util.regex.Matcher; -import java.util.stream.Collectors; + +import io.swagger.v3.oas.models.OpenAPI; +import io.swagger.v3.oas.models.Operation; import static org.openapitools.codegen.utils.StringUtils.camelize; diff --git a/modules/openapi-generator/src/main/resources/kotlin-client/data_class.mustache b/modules/openapi-generator/src/main/resources/kotlin-client/data_class.mustache index e1f5062f2e2e..1b63b0878117 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-client/data_class.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-client/data_class.mustache @@ -28,6 +28,7 @@ import kotlinx.serialization.internal.CommonEnumSerializer {{#serializableModel}} import java.io.Serializable {{/serializableModel}} + /** * {{{description}}} {{#allVars}} diff --git a/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-retrofit2/queryParams.mustache b/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-retrofit2/queryParams.mustache index b5bace590c56..0ee26c9ec0f0 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-retrofit2/queryParams.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-client/libraries/jvm-retrofit2/queryParams.mustache @@ -1 +1 @@ -{{#isQueryParam}}@Query("{{baseName}}") {{{paramName}}}: {{#collectionFormat}}{{#isCollectionFormatMulti}}{{{dataType}}}{{/isCollectionFormatMulti}}{{^isCollectionFormatMulti}}{{{collectionFormat.toUpperCase}}}Params{{/isCollectionFormatMulti}}{{/collectionFormat}}{{^collectionFormat}}{{{dataType}}}{{/collectionFormat}}{{/isQueryParam}} \ No newline at end of file +{{#isQueryParam}}@Query("{{baseName}}") {{{paramName}}}: {{#collectionFormat}}{{#isCollectionFormatMulti}}{{{dataType}}}{{/isCollectionFormatMulti}}{{^isCollectionFormatMulti}}{{{collectionFormat.toUpperCase}}}Params{{/isCollectionFormatMulti}}{{/collectionFormat}}{{^collectionFormat}}{{{dataType}}}{{/collectionFormat}}{{^required}}? = null{{/required}}{{/isQueryParam}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/api.mustache b/modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/api.mustache index aac93219b677..d268f23a77d3 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/api.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/api.mustache @@ -17,33 +17,33 @@ import kotlinx.serialization.internal.StringDescriptor {{#operations}} {{#nonPublicApi}}internal {{/nonPublicApi}}class {{classname}} @UseExperimental(UnstableDefault::class) constructor( - baseUrl: kotlin.String = "{{{basePath}}}", - httpClientEngine: HttpClientEngine? = null, - serializer: KotlinxSerializer) - : ApiClient(baseUrl, httpClientEngine, serializer) { + baseUrl: kotlin.String = "{{{basePath}}}", + httpClientEngine: HttpClientEngine? = null, + serializer: KotlinxSerializer +) : ApiClient(baseUrl, httpClientEngine, serializer) { @UseExperimental(UnstableDefault::class) constructor( baseUrl: kotlin.String = "{{{basePath}}}", httpClientEngine: HttpClientEngine? = null, - jsonConfiguration: JsonConfiguration = JsonConfiguration.Default) - : this(baseUrl, httpClientEngine, KotlinxSerializer(Json(jsonConfiguration))) + jsonConfiguration: JsonConfiguration = JsonConfiguration.Default + ) : this(baseUrl, httpClientEngine, KotlinxSerializer(Json(jsonConfiguration))) {{#operation}} /** - * {{summary}} - * {{notes}} - {{#allParams}}* @param {{{paramName}}} {{description}} {{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}} - {{/allParams}}* @return {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} - */ + * {{summary}} + * {{notes}} + {{#allParams}} * @param {{{paramName}}} {{description}} {{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}} + {{/allParams}} * @return {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} + */ {{#returnType}} @Suppress("UNCHECKED_CAST") {{/returnType}} - suspend fun {{operationId}}({{#allParams}}{{{paramName}}}: {{{dataType}}}{{^required}}?{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) : HttpResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Unit{{/returnType}}> { + suspend fun {{operationId}}({{#allParams}}{{{paramName}}}: {{{dataType}}}{{^required}}?{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}}): HttpResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Unit{{/returnType}}> { val localVariableAuthNames = listOf({{#authMethods}}"{{name}}"{{#hasMore}}, {{/hasMore}}{{/authMethods}}) - val localVariableBody = {{#hasBodyParam}}{{#bodyParam}}{{#isListContainer}}{{operationIdCamelCase}}Request({{{paramName}}}.asList()){{/isListContainer}}{{^isListContainer}}{{#isMapContainer}}{{operationIdCamelCase}}Request({{{paramName}}}){{/isMapContainer}}{{^isMapContainer}}{{{paramName}}}{{/isMapContainer}}{{/isListContainer}}{{/bodyParam}}{{/hasBodyParam}} + val localVariableBody = {{#hasBodyParam}}{{#bodyParam}}{{#isListContainer}}{{operationIdCamelCase}}Request({{{paramName}}}{{^isList}}.asList(){{/isList}}){{/isListContainer}}{{^isListContainer}}{{#isMapContainer}}{{operationIdCamelCase}}Request({{{paramName}}}){{/isMapContainer}}{{^isMapContainer}}{{{paramName}}}{{/isMapContainer}}{{/isListContainer}}{{/bodyParam}}{{/hasBodyParam}} {{^hasBodyParam}} {{#hasFormParams}} {{#isMultipart}} @@ -78,7 +78,7 @@ import kotlinx.serialization.internal.StringDescriptor val localVariableConfig = RequestConfig( RequestMethod.{{httpMethod}}, - "{{path}}"{{#pathParams}}.replace("{"+"{{baseName}}"+"}", "${{{paramName}}}"){{/pathParams}}, + "{{path}}"{{#pathParams}}.replace("{" + "{{baseName}}" + "}", "${{{paramName}}}"){{/pathParams}}, query = localVariableQuery, headers = localVariableHeaders ) @@ -87,20 +87,20 @@ import kotlinx.serialization.internal.StringDescriptor localVariableConfig, localVariableBody, localVariableAuthNames - ).{{#isListContainer}}wrap<{{operationIdCamelCase}}Response>().map { value.toTypedArray() }{{/isListContainer}}{{^isListContainer}}{{#isMapContainer}}wrap<{{operationIdCamelCase}}Response>().map { value }{{/isMapContainer}}{{^isMapContainer}}wrap(){{/isMapContainer}}{{/isListContainer}} + ).{{#isListContainer}}wrap<{{operationIdCamelCase}}Response>().map { value{{^isList}}.toTypedArray(){{/isList}} }{{/isListContainer}}{{^isListContainer}}{{#isMapContainer}}wrap<{{operationIdCamelCase}}Response>().map { value }{{/isMapContainer}}{{^isMapContainer}}wrap(){{/isMapContainer}}{{/isListContainer}} } - {{#hasBodyParam}} - {{#bodyParam}} - {{#isListContainer}}{{>serial_wrapper_request_list}}{{/isListContainer}}{{#isMapContainer}}{{>serial_wrapper_request_map}}{{/isMapContainer}} - {{/bodyParam}} - {{/hasBodyParam}} - {{#isListContainer}} - {{>serial_wrapper_response_list}} - {{/isListContainer}} - {{#isMapContainer}} - {{>serial_wrapper_response_map}} - {{/isMapContainer}} +{{#hasBodyParam}} +{{#bodyParam}} +{{#isListContainer}}{{>serial_wrapper_request_list}}{{/isListContainer}}{{#isMapContainer}}{{>serial_wrapper_request_map}}{{/isMapContainer}} +{{/bodyParam}} +{{/hasBodyParam}} +{{#isListContainer}} +{{>serial_wrapper_response_list}} +{{/isListContainer}} +{{#isMapContainer}} +{{>serial_wrapper_response_map}} +{{/isMapContainer}} {{/operation}} diff --git a/modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/serial_wrapper_request_list.mustache b/modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/serial_wrapper_request_list.mustache index 6b07c05f44e4..a44a242cbd2d 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/serial_wrapper_request_list.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/serial_wrapper_request_list.mustache @@ -1,10 +1,10 @@ -@Serializable -private class {{operationIdCamelCase}}Request(val value: List<{{#bodyParam}}{{baseType}}{{/bodyParam}}>) { - @Serializer({{operationIdCamelCase}}Request::class) - {{#nonPublicApi}}internal {{/nonPublicApi}}companion object : KSerializer<{{operationIdCamelCase}}Request> { - private val serializer: KSerializer> = {{#bodyParam}}{{baseType}}{{/bodyParam}}.serializer().list - override val descriptor = StringDescriptor.withName("{{operationIdCamelCase}}Request") - override fun serialize(encoder: Encoder, obj: {{operationIdCamelCase}}Request) = serializer.serialize(encoder, obj.value) - override fun deserialize(decoder: Decoder) = {{operationIdCamelCase}}Request(serializer.deserialize(decoder)) - } -} \ No newline at end of file + @Serializable + private class {{operationIdCamelCase}}Request(val value: List<{{#bodyParam}}{{baseType}}{{/bodyParam}}>) { + @Serializer({{operationIdCamelCase}}Request::class) + {{#nonPublicApi}}internal {{/nonPublicApi}}companion object : KSerializer<{{operationIdCamelCase}}Request> { + private val serializer: KSerializer> = {{#bodyParam}}{{baseType}}{{/bodyParam}}.serializer().list + override val descriptor = StringDescriptor.withName("{{operationIdCamelCase}}Request") + override fun serialize(encoder: Encoder, obj: {{operationIdCamelCase}}Request) = serializer.serialize(encoder, obj.value) + override fun deserialize(decoder: Decoder) = {{operationIdCamelCase}}Request(serializer.deserialize(decoder)) + } + } \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/serial_wrapper_request_map.mustache b/modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/serial_wrapper_request_map.mustache index f3a28700adf1..5dc6864aae82 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/serial_wrapper_request_map.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/serial_wrapper_request_map.mustache @@ -1,10 +1,10 @@ -@Serializable -private class {{operationIdCamelCase}}Request(val value: Map) { - @Serializer({{operationIdCamelCase}}Request::class) - {{#nonPublicApi}}internal {{/nonPublicApi}}companion object : KSerializer<{{operationIdCamelCase}}Request> { - private val serializer: KSerializer> = (kotlin.String.serializer() to {{#bodyParam}}{{baseType}}{{/bodyParam}}.serializer()).map - override val descriptor = StringDescriptor.withName("{{operationIdCamelCase}}Request") - override fun serialize(encoder: Encoder, obj: {{operationIdCamelCase}}Request) = serializer.serialize(encoder, obj.value) - override fun deserialize(decoder: Decoder) = {{operationIdCamelCase}}Request(serializer.deserialize(decoder)) - } -} \ No newline at end of file + @Serializable + private class {{operationIdCamelCase}}Request(val value: Map) { + @Serializer({{operationIdCamelCase}}Request::class) + {{#nonPublicApi}}internal {{/nonPublicApi}}companion object : KSerializer<{{operationIdCamelCase}}Request> { + private val serializer: KSerializer> = (kotlin.String.serializer() to {{#bodyParam}}{{baseType}}{{/bodyParam}}.serializer()).map + override val descriptor = StringDescriptor.withName("{{operationIdCamelCase}}Request") + override fun serialize(encoder: Encoder, obj: {{operationIdCamelCase}}Request) = serializer.serialize(encoder, obj.value) + override fun deserialize(decoder: Decoder) = {{operationIdCamelCase}}Request(serializer.deserialize(decoder)) + } + } \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/serial_wrapper_response_list.mustache b/modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/serial_wrapper_response_list.mustache index 838a8f1e53f3..a4e70a219ca4 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/serial_wrapper_response_list.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/serial_wrapper_response_list.mustache @@ -1,10 +1,10 @@ -@Serializable -private class {{operationIdCamelCase}}Response(val value: List<{{returnBaseType}}>) { - @Serializer({{operationIdCamelCase}}Response::class) - {{#nonPublicApi}}internal {{/nonPublicApi}}companion object : KSerializer<{{operationIdCamelCase}}Response> { - private val serializer: KSerializer> = {{returnBaseType}}.serializer().list - override val descriptor = StringDescriptor.withName("{{operationIdCamelCase}}Response") - override fun serialize(encoder: Encoder, obj: {{operationIdCamelCase}}Response) = serializer.serialize(encoder, obj.value) - override fun deserialize(decoder: Decoder) = {{operationIdCamelCase}}Response(serializer.deserialize(decoder)) - } -} \ No newline at end of file + @Serializable + private class {{operationIdCamelCase}}Response(val value: List<{{returnBaseType}}>) { + @Serializer({{operationIdCamelCase}}Response::class) + {{#nonPublicApi}}internal {{/nonPublicApi}}companion object : KSerializer<{{operationIdCamelCase}}Response> { + private val serializer: KSerializer> = {{returnBaseType}}.serializer().list + override val descriptor = StringDescriptor.withName("{{operationIdCamelCase}}Response") + override fun serialize(encoder: Encoder, obj: {{operationIdCamelCase}}Response) = serializer.serialize(encoder, obj.value) + override fun deserialize(decoder: Decoder) = {{operationIdCamelCase}}Response(serializer.deserialize(decoder)) + } + } \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/serial_wrapper_response_map.mustache b/modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/serial_wrapper_response_map.mustache index c23dcadcdc5b..8253dc1f1a1c 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/serial_wrapper_response_map.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/serial_wrapper_response_map.mustache @@ -1,10 +1,10 @@ -@Serializable -private class {{operationIdCamelCase}}Response(val value: Map) { - @Serializer({{operationIdCamelCase}}Response::class) - {{#nonPublicApi}}internal {{/nonPublicApi}}companion object : KSerializer<{{operationIdCamelCase}}Response> { - private val serializer: KSerializer> = (kotlin.String.serializer() to {{returnBaseType}}.serializer()).map - override val descriptor = StringDescriptor.withName("{{operationIdCamelCase}}Response") - override fun serialize(encoder: Encoder, obj: {{operationIdCamelCase}}Response) = serializer.serialize(encoder, obj.value) - override fun deserialize(decoder: Decoder) = {{operationIdCamelCase}}Response(serializer.deserialize(decoder)) - } -} \ No newline at end of file + @Serializable + private class {{operationIdCamelCase}}Response(val value: Map) { + @Serializer({{operationIdCamelCase}}Response::class) + {{#nonPublicApi}}internal {{/nonPublicApi}}companion object : KSerializer<{{operationIdCamelCase}}Response> { + private val serializer: KSerializer> = (kotlin.String.serializer() to {{returnBaseType}}.serializer()).map + override val descriptor = StringDescriptor.withName("{{operationIdCamelCase}}Response") + override fun serialize(encoder: Encoder, obj: {{operationIdCamelCase}}Response) = serializer.serialize(encoder, obj.value) + override fun deserialize(decoder: Decoder) = {{operationIdCamelCase}}Response(serializer.deserialize(decoder)) + } + } \ No newline at end of file diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/kotlin/spring/KotlinSpringServerCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/kotlin/spring/KotlinSpringServerCodegenTest.java index d6b3e5f6e5fe..62b8353d69c1 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/kotlin/spring/KotlinSpringServerCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/kotlin/spring/KotlinSpringServerCodegenTest.java @@ -1,21 +1,11 @@ package org.openapitools.codegen.kotlin.spring; -import com.fasterxml.jackson.annotation.JsonProperty; import com.google.common.collect.testing.Helpers; -import io.swagger.parser.OpenAPIParser; -import io.swagger.v3.oas.models.OpenAPI; -import io.swagger.v3.oas.models.info.Info; -import io.swagger.v3.oas.models.servers.Server; -import io.swagger.v3.parser.core.models.ParseOptions; + import org.apache.commons.io.FileUtils; import org.openapitools.codegen.*; -import org.openapitools.codegen.config.CodegenConfigurator; import org.openapitools.codegen.kotlin.KotlinTestUtils; -import org.openapitools.codegen.languages.AbstractJavaCodegen; -import org.openapitools.codegen.languages.JavaClientCodegen; import org.openapitools.codegen.languages.KotlinSpringServerCodegen; -import org.openapitools.codegen.languages.SpringCodegen; -import org.openapitools.codegen.languages.features.CXFServerFeatures; import org.testng.Assert; import org.testng.annotations.Test; @@ -24,6 +14,10 @@ import java.util.Collections; import java.util.List; +import io.swagger.v3.oas.models.OpenAPI; +import io.swagger.v3.oas.models.info.Info; +import io.swagger.v3.oas.models.servers.Server; + public class KotlinSpringServerCodegenTest { @Test(description = "test embedded enum array") diff --git a/samples/client/petstore/kotlin-gson/docs/Pet.md b/samples/client/petstore/kotlin-gson/docs/Pet.md index 70c340005d16..c82844b5ee80 100644 --- a/samples/client/petstore/kotlin-gson/docs/Pet.md +++ b/samples/client/petstore/kotlin-gson/docs/Pet.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **kotlin.String** | | -**photoUrls** | **kotlin.Array<kotlin.String>** | | +**photoUrls** | **kotlin.collections.List<kotlin.String>** | | **id** | **kotlin.Long** | | [optional] **category** | [**Category**](Category.md) | | [optional] -**tags** | [**kotlin.Array<Tag>**](Tag.md) | | [optional] +**tags** | [**kotlin.collections.List<Tag>**](Tag.md) | | [optional] **status** | [**inline**](#StatusEnum) | pet status in the store | [optional] diff --git a/samples/client/petstore/kotlin-gson/docs/PetApi.md b/samples/client/petstore/kotlin-gson/docs/PetApi.md index ea93e1745279..27289c31c243 100644 --- a/samples/client/petstore/kotlin-gson/docs/PetApi.md +++ b/samples/client/petstore/kotlin-gson/docs/PetApi.md @@ -110,7 +110,7 @@ Configure petstore_auth: # **findPetsByStatus** -> kotlin.Array<Pet> findPetsByStatus(status) +> kotlin.collections.List<Pet> findPetsByStatus(status) Finds Pets by status @@ -123,9 +123,9 @@ Multiple status values can be provided with comma separated strings //import org.openapitools.client.models.* val apiInstance = PetApi() -val status : kotlin.Array = // kotlin.Array | Status values that need to be considered for filter +val status : kotlin.collections.List = // kotlin.collections.List | Status values that need to be considered for filter try { - val result : kotlin.Array = apiInstance.findPetsByStatus(status) + val result : kotlin.collections.List = apiInstance.findPetsByStatus(status) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByStatus") @@ -140,11 +140,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] + **status** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization @@ -159,7 +159,7 @@ Configure petstore_auth: # **findPetsByTags** -> kotlin.Array<Pet> findPetsByTags(tags) +> kotlin.collections.List<Pet> findPetsByTags(tags) Finds Pets by tags @@ -172,9 +172,9 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 //import org.openapitools.client.models.* val apiInstance = PetApi() -val tags : kotlin.Array = // kotlin.Array | Tags to filter by +val tags : kotlin.collections.List = // kotlin.collections.List | Tags to filter by try { - val result : kotlin.Array = apiInstance.findPetsByTags(tags) + val result : kotlin.collections.List = apiInstance.findPetsByTags(tags) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByTags") @@ -189,11 +189,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tags** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Tags to filter by | + **tags** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Tags to filter by | ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization diff --git a/samples/client/petstore/kotlin-gson/docs/UserApi.md b/samples/client/petstore/kotlin-gson/docs/UserApi.md index 0f55f06bc629..fd98ce696add 100644 --- a/samples/client/petstore/kotlin-gson/docs/UserApi.md +++ b/samples/client/petstore/kotlin-gson/docs/UserApi.md @@ -73,7 +73,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithArrayInput(body) } catch (e: ClientException) { @@ -89,7 +89,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type @@ -117,7 +117,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithListInput(body) } catch (e: ClientException) { @@ -133,7 +133,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type diff --git a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index 1c78bae10dd4..60f72b51af95 100644 --- a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -119,14 +119,14 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * Finds Pets by status * Multiple status values can be provided with comma separated strings * @param status Status values that need to be considered for filter - * @return kotlin.Array + * @return kotlin.collections.List * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response * @throws ServerException If the API returns a server error response */ @Suppress("UNCHECKED_CAST") @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun findPetsByStatus(status: kotlin.Array) : kotlin.Array { + fun findPetsByStatus(status: kotlin.collections.List) : kotlin.collections.List { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -139,13 +139,13 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { query = localVariableQuery, headers = localVariableHeaders ) - val localVarResponse = request>( + val localVarResponse = request>( localVariableConfig, localVariableBody ) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.Array + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { @@ -163,7 +163,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * Finds Pets by tags * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. * @param tags Tags to filter by - * @return kotlin.Array + * @return kotlin.collections.List * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response * @throws ServerException If the API returns a server error response @@ -171,7 +171,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { @Suppress("UNCHECKED_CAST") @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) @Deprecated(message = "This operation is deprecated.") - fun findPetsByTags(tags: kotlin.Array) : kotlin.Array { + fun findPetsByTags(tags: kotlin.collections.List) : kotlin.collections.List { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -184,13 +184,13 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { query = localVariableQuery, headers = localVariableHeaders ) - val localVarResponse = request>( + val localVarResponse = request>( localVariableConfig, localVariableBody ) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.Array + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { diff --git a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index 1e6e81fc1e91..258a2540e9e8 100644 --- a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -83,7 +83,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun createUsersWithArrayInput(body: kotlin.Array) : Unit { + fun createUsersWithArrayInput(body: kotlin.collections.List) : Unit { val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() @@ -123,7 +123,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun createUsersWithListInput(body: kotlin.Array) : Unit { + fun createUsersWithListInput(body: kotlin.collections.List) : Unit { val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() diff --git a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt index 51a090c496e9..54df813fceec 100644 --- a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt +++ b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName + /** * Describes the result of uploading an image resource * @param code diff --git a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Category.kt index 0e978e11fd6d..fdefa74fda0b 100644 --- a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName + /** * A category for a pet * @param id diff --git a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Order.kt index 4f9f9fde4537..049c89df3134 100644 --- a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName + /** * An order for a pets from the pet store * @param id diff --git a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Pet.kt index 54d9edce52d7..af29ef2b61b7 100644 --- a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -15,6 +15,7 @@ import org.openapitools.client.models.Category import org.openapitools.client.models.Tag import com.google.gson.annotations.SerializedName + /** * A pet for sale in the pet store * @param name @@ -29,13 +30,13 @@ data class Pet ( @SerializedName("name") val name: kotlin.String, @SerializedName("photoUrls") - val photoUrls: kotlin.Array, + val photoUrls: kotlin.collections.List, @SerializedName("id") val id: kotlin.Long? = null, @SerializedName("category") val category: Category? = null, @SerializedName("tags") - val tags: kotlin.Array? = null, + val tags: kotlin.collections.List? = null, /* pet status in the store */ @SerializedName("status") val status: Pet.Status? = null diff --git a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Tag.kt index 71d9cb767be7..28e82b1df685 100644 --- a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName + /** * A tag for a pet * @param id diff --git a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/User.kt index c2158935c59d..62baf33e927e 100644 --- a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/User.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName + /** * A User who is purchasing from the pet store * @param id diff --git a/samples/client/petstore/kotlin-jackson/docs/Pet.md b/samples/client/petstore/kotlin-jackson/docs/Pet.md index 70c340005d16..c82844b5ee80 100644 --- a/samples/client/petstore/kotlin-jackson/docs/Pet.md +++ b/samples/client/petstore/kotlin-jackson/docs/Pet.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **kotlin.String** | | -**photoUrls** | **kotlin.Array<kotlin.String>** | | +**photoUrls** | **kotlin.collections.List<kotlin.String>** | | **id** | **kotlin.Long** | | [optional] **category** | [**Category**](Category.md) | | [optional] -**tags** | [**kotlin.Array<Tag>**](Tag.md) | | [optional] +**tags** | [**kotlin.collections.List<Tag>**](Tag.md) | | [optional] **status** | [**inline**](#StatusEnum) | pet status in the store | [optional] diff --git a/samples/client/petstore/kotlin-jackson/docs/PetApi.md b/samples/client/petstore/kotlin-jackson/docs/PetApi.md index ea93e1745279..27289c31c243 100644 --- a/samples/client/petstore/kotlin-jackson/docs/PetApi.md +++ b/samples/client/petstore/kotlin-jackson/docs/PetApi.md @@ -110,7 +110,7 @@ Configure petstore_auth: # **findPetsByStatus** -> kotlin.Array<Pet> findPetsByStatus(status) +> kotlin.collections.List<Pet> findPetsByStatus(status) Finds Pets by status @@ -123,9 +123,9 @@ Multiple status values can be provided with comma separated strings //import org.openapitools.client.models.* val apiInstance = PetApi() -val status : kotlin.Array = // kotlin.Array | Status values that need to be considered for filter +val status : kotlin.collections.List = // kotlin.collections.List | Status values that need to be considered for filter try { - val result : kotlin.Array = apiInstance.findPetsByStatus(status) + val result : kotlin.collections.List = apiInstance.findPetsByStatus(status) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByStatus") @@ -140,11 +140,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] + **status** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization @@ -159,7 +159,7 @@ Configure petstore_auth: # **findPetsByTags** -> kotlin.Array<Pet> findPetsByTags(tags) +> kotlin.collections.List<Pet> findPetsByTags(tags) Finds Pets by tags @@ -172,9 +172,9 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 //import org.openapitools.client.models.* val apiInstance = PetApi() -val tags : kotlin.Array = // kotlin.Array | Tags to filter by +val tags : kotlin.collections.List = // kotlin.collections.List | Tags to filter by try { - val result : kotlin.Array = apiInstance.findPetsByTags(tags) + val result : kotlin.collections.List = apiInstance.findPetsByTags(tags) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByTags") @@ -189,11 +189,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tags** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Tags to filter by | + **tags** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Tags to filter by | ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization diff --git a/samples/client/petstore/kotlin-jackson/docs/UserApi.md b/samples/client/petstore/kotlin-jackson/docs/UserApi.md index 0f55f06bc629..fd98ce696add 100644 --- a/samples/client/petstore/kotlin-jackson/docs/UserApi.md +++ b/samples/client/petstore/kotlin-jackson/docs/UserApi.md @@ -73,7 +73,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithArrayInput(body) } catch (e: ClientException) { @@ -89,7 +89,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type @@ -117,7 +117,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithListInput(body) } catch (e: ClientException) { @@ -133,7 +133,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type diff --git a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/Application.kt b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/Application.kt index 81e53e2d2f6c..a48b80eecd42 100644 --- a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/Application.kt +++ b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/Application.kt @@ -10,7 +10,7 @@ fun main() { println(".main") val inventory = StoreApi().getInventory() println("Inventory : $inventory") - val pet = Pet(name = "Elliot", photoUrls = listOf("https://jameshooverstudios.com/wp-content/uploads/2015/04/Majestic-Dog-Photography-Elliot-Nov-5-2014.jpg", "https://express-images.franklymedia.com/6616/sites/981/2020/01/22105725/Elliott.jpg").toTypedArray(), id = 123456453, category = Category(id = 13259476, name = "dog"), tags = listOf(Tag(id = 194093, name = "Elliot")).toTypedArray(), status = Pet.Status.AVAILABLE) + val pet = Pet(name = "Elliot", photoUrls = listOf("https://jameshooverstudios.com/wp-content/uploads/2015/04/Majestic-Dog-Photography-Elliot-Nov-5-2014.jpg", "https://express-images.franklymedia.com/6616/sites/981/2020/01/22105725/Elliott.jpg"), id = 123456453, category = Category(id = 13259476, name = "dog"), tags = listOf(Tag(id = 194093, name = "Elliot")), status = Pet.Status.AVAILABLE) PetApi().addPet(pet) val elliot = PetApi().getPetById(123456453) println("Elliot : $elliot") diff --git a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index 1c78bae10dd4..60f72b51af95 100644 --- a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -119,14 +119,14 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * Finds Pets by status * Multiple status values can be provided with comma separated strings * @param status Status values that need to be considered for filter - * @return kotlin.Array + * @return kotlin.collections.List * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response * @throws ServerException If the API returns a server error response */ @Suppress("UNCHECKED_CAST") @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun findPetsByStatus(status: kotlin.Array) : kotlin.Array { + fun findPetsByStatus(status: kotlin.collections.List) : kotlin.collections.List { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -139,13 +139,13 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { query = localVariableQuery, headers = localVariableHeaders ) - val localVarResponse = request>( + val localVarResponse = request>( localVariableConfig, localVariableBody ) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.Array + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { @@ -163,7 +163,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * Finds Pets by tags * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. * @param tags Tags to filter by - * @return kotlin.Array + * @return kotlin.collections.List * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response * @throws ServerException If the API returns a server error response @@ -171,7 +171,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { @Suppress("UNCHECKED_CAST") @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) @Deprecated(message = "This operation is deprecated.") - fun findPetsByTags(tags: kotlin.Array) : kotlin.Array { + fun findPetsByTags(tags: kotlin.collections.List) : kotlin.collections.List { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -184,13 +184,13 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { query = localVariableQuery, headers = localVariableHeaders ) - val localVarResponse = request>( + val localVarResponse = request>( localVariableConfig, localVariableBody ) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.Array + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { diff --git a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index 1e6e81fc1e91..258a2540e9e8 100644 --- a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -83,7 +83,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun createUsersWithArrayInput(body: kotlin.Array) : Unit { + fun createUsersWithArrayInput(body: kotlin.collections.List) : Unit { val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() @@ -123,7 +123,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun createUsersWithListInput(body: kotlin.Array) : Unit { + fun createUsersWithListInput(body: kotlin.collections.List) : Unit { val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() diff --git a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt index ff1d570d234c..c341f8ca321b 100644 --- a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt +++ b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.fasterxml.jackson.annotation.JsonProperty + /** * Describes the result of uploading an image resource * @param code diff --git a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt index a8782b11a5e0..2ed5390c1f3a 100644 --- a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.fasterxml.jackson.annotation.JsonProperty + /** * A category for a pet * @param id diff --git a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt index fccc4d2f5e4a..c7df5b55614b 100644 --- a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.fasterxml.jackson.annotation.JsonProperty + /** * An order for a pets from the pet store * @param id diff --git a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt index 8ac26d73a48c..be5b168e2d8b 100644 --- a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -15,6 +15,7 @@ import org.openapitools.client.models.Category import org.openapitools.client.models.Tag import com.fasterxml.jackson.annotation.JsonProperty + /** * A pet for sale in the pet store * @param name @@ -29,13 +30,13 @@ data class Pet ( @field:JsonProperty("name") val name: kotlin.String, @field:JsonProperty("photoUrls") - val photoUrls: kotlin.Array, + val photoUrls: kotlin.collections.List, @field:JsonProperty("id") val id: kotlin.Long? = null, @field:JsonProperty("category") val category: Category? = null, @field:JsonProperty("tags") - val tags: kotlin.Array? = null, + val tags: kotlin.collections.List? = null, /* pet status in the store */ @field:JsonProperty("status") val status: Pet.Status? = null diff --git a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt index b6ae7b910fa2..7243f42ed7d8 100644 --- a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.fasterxml.jackson.annotation.JsonProperty + /** * A tag for a pet * @param id diff --git a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/User.kt index 199b868323a3..e8f639e50928 100644 --- a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/User.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.fasterxml.jackson.annotation.JsonProperty + /** * A User who is purchasing from the pet store * @param id diff --git a/samples/client/petstore/kotlin-json-request-string/docs/Pet.md b/samples/client/petstore/kotlin-json-request-string/docs/Pet.md index 70c340005d16..c82844b5ee80 100644 --- a/samples/client/petstore/kotlin-json-request-string/docs/Pet.md +++ b/samples/client/petstore/kotlin-json-request-string/docs/Pet.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **kotlin.String** | | -**photoUrls** | **kotlin.Array<kotlin.String>** | | +**photoUrls** | **kotlin.collections.List<kotlin.String>** | | **id** | **kotlin.Long** | | [optional] **category** | [**Category**](Category.md) | | [optional] -**tags** | [**kotlin.Array<Tag>**](Tag.md) | | [optional] +**tags** | [**kotlin.collections.List<Tag>**](Tag.md) | | [optional] **status** | [**inline**](#StatusEnum) | pet status in the store | [optional] diff --git a/samples/client/petstore/kotlin-json-request-string/docs/PetApi.md b/samples/client/petstore/kotlin-json-request-string/docs/PetApi.md index dd70fe9495dc..c24f3ec45653 100644 --- a/samples/client/petstore/kotlin-json-request-string/docs/PetApi.md +++ b/samples/client/petstore/kotlin-json-request-string/docs/PetApi.md @@ -110,7 +110,7 @@ Configure petstore_auth: # **findPetsByTags** -> kotlin.Array<Pet> findPetsByTags(tags) +> kotlin.collections.List<Pet> findPetsByTags(tags) Finds Pets by tags @@ -123,9 +123,9 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 //import org.openapitools.client.models.* val apiInstance = PetApi() -val tags : kotlin.Array = // kotlin.Array | Tags to filter by +val tags : kotlin.collections.List = // kotlin.collections.List | Tags to filter by try { - val result : kotlin.Array = apiInstance.findPetsByTags(tags) + val result : kotlin.collections.List = apiInstance.findPetsByTags(tags) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByTags") @@ -140,11 +140,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tags** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Tags to filter by | + **tags** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Tags to filter by | ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization @@ -159,7 +159,7 @@ Configure petstore_auth: # **getAllPets** -> kotlin.Array<Pet> getAllPets(lastUpdated) +> kotlin.collections.List<Pet> getAllPets(lastUpdated) Get all pets @@ -172,7 +172,7 @@ Get all pets val apiInstance = PetApi() val lastUpdated : java.time.OffsetDateTime = 2013-10-20T19:20:30+01:00 // java.time.OffsetDateTime | When this endpoint was hit last to help indentify if the client already has the latest copy. try { - val result : kotlin.Array = apiInstance.getAllPets(lastUpdated) + val result : kotlin.collections.List = apiInstance.getAllPets(lastUpdated) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#getAllPets") @@ -191,7 +191,7 @@ Name | Type | Description | Notes ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization diff --git a/samples/client/petstore/kotlin-json-request-string/docs/UserApi.md b/samples/client/petstore/kotlin-json-request-string/docs/UserApi.md index 0f55f06bc629..fd98ce696add 100644 --- a/samples/client/petstore/kotlin-json-request-string/docs/UserApi.md +++ b/samples/client/petstore/kotlin-json-request-string/docs/UserApi.md @@ -73,7 +73,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithArrayInput(body) } catch (e: ClientException) { @@ -89,7 +89,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type @@ -117,7 +117,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithListInput(body) } catch (e: ClientException) { @@ -133,7 +133,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type diff --git a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index d835e047af80..584c6ef06867 100644 --- a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -119,7 +119,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * Finds Pets by tags * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. * @param tags Tags to filter by - * @return kotlin.Array + * @return kotlin.collections.List * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response * @throws ServerException If the API returns a server error response @@ -127,7 +127,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { @Suppress("UNCHECKED_CAST") @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) @Deprecated(message = "This operation is deprecated.") - fun findPetsByTags(tags: kotlin.Array) : kotlin.Array { + fun findPetsByTags(tags: kotlin.collections.List) : kotlin.collections.List { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -140,13 +140,13 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { query = localVariableQuery, headers = localVariableHeaders ) - val localVarResponse = request>( + val localVarResponse = request>( localVariableConfig, localVariableBody ) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.Array + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { @@ -164,14 +164,14 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * Get all pets * * @param lastUpdated When this endpoint was hit last to help indentify if the client already has the latest copy. (optional) - * @return kotlin.Array + * @return kotlin.collections.List * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response * @throws ServerException If the API returns a server error response */ @Suppress("UNCHECKED_CAST") @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun getAllPets(lastUpdated: java.time.OffsetDateTime?) : kotlin.Array { + fun getAllPets(lastUpdated: java.time.OffsetDateTime?) : kotlin.collections.List { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -186,13 +186,13 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { query = localVariableQuery, headers = localVariableHeaders ) - val localVarResponse = request>( + val localVarResponse = request>( localVariableConfig, localVariableBody ) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.Array + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { diff --git a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index 1e6e81fc1e91..258a2540e9e8 100644 --- a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -83,7 +83,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun createUsersWithArrayInput(body: kotlin.Array) : Unit { + fun createUsersWithArrayInput(body: kotlin.collections.List) : Unit { val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() @@ -123,7 +123,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun createUsersWithListInput(body: kotlin.Array) : Unit { + fun createUsersWithListInput(body: kotlin.collections.List) : Unit { val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() diff --git a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt index ada15fee7a1b..fafca8738f66 100644 --- a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt +++ b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json + /** * Describes the result of uploading an image resource * @param code diff --git a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Category.kt index 426a0e515928..a4c17c3b49dd 100644 --- a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json + /** * A category for a pet * @param id diff --git a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Order.kt index 3cfa5ca96263..a66c335904e7 100644 --- a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json + /** * An order for a pets from the pet store * @param id diff --git a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Pet.kt index a94bb811c3b4..a3df06cb6eb3 100644 --- a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -15,6 +15,7 @@ import org.openapitools.client.models.Category import org.openapitools.client.models.Tag import com.squareup.moshi.Json + /** * A pet for sale in the pet store * @param name @@ -29,13 +30,13 @@ data class Pet ( @Json(name = "name") val name: kotlin.String, @Json(name = "photoUrls") - val photoUrls: kotlin.Array, + val photoUrls: kotlin.collections.List, @Json(name = "id") val id: kotlin.Long? = null, @Json(name = "category") val category: Category? = null, @Json(name = "tags") - val tags: kotlin.Array? = null, + val tags: kotlin.collections.List? = null, /* pet status in the store */ @Json(name = "status") val status: Pet.Status? = null diff --git a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Tag.kt index f9ef87e13fbf..6e619023a5c9 100644 --- a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json + /** * A tag for a pet * @param id diff --git a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/User.kt index dfd63806da94..af1e270325de 100644 --- a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/User.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json + /** * A User who is purchasing from the pet store * @param id diff --git a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/docs/Pet.md b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/docs/Pet.md index 70c340005d16..c82844b5ee80 100644 --- a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/docs/Pet.md +++ b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/docs/Pet.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **kotlin.String** | | -**photoUrls** | **kotlin.Array<kotlin.String>** | | +**photoUrls** | **kotlin.collections.List<kotlin.String>** | | **id** | **kotlin.Long** | | [optional] **category** | [**Category**](Category.md) | | [optional] -**tags** | [**kotlin.Array<Tag>**](Tag.md) | | [optional] +**tags** | [**kotlin.collections.List<Tag>**](Tag.md) | | [optional] **status** | [**inline**](#StatusEnum) | pet status in the store | [optional] diff --git a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/docs/PetApi.md b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/docs/PetApi.md index ea93e1745279..27289c31c243 100644 --- a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/docs/PetApi.md +++ b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/docs/PetApi.md @@ -110,7 +110,7 @@ Configure petstore_auth: # **findPetsByStatus** -> kotlin.Array<Pet> findPetsByStatus(status) +> kotlin.collections.List<Pet> findPetsByStatus(status) Finds Pets by status @@ -123,9 +123,9 @@ Multiple status values can be provided with comma separated strings //import org.openapitools.client.models.* val apiInstance = PetApi() -val status : kotlin.Array = // kotlin.Array | Status values that need to be considered for filter +val status : kotlin.collections.List = // kotlin.collections.List | Status values that need to be considered for filter try { - val result : kotlin.Array = apiInstance.findPetsByStatus(status) + val result : kotlin.collections.List = apiInstance.findPetsByStatus(status) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByStatus") @@ -140,11 +140,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] + **status** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization @@ -159,7 +159,7 @@ Configure petstore_auth: # **findPetsByTags** -> kotlin.Array<Pet> findPetsByTags(tags) +> kotlin.collections.List<Pet> findPetsByTags(tags) Finds Pets by tags @@ -172,9 +172,9 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 //import org.openapitools.client.models.* val apiInstance = PetApi() -val tags : kotlin.Array = // kotlin.Array | Tags to filter by +val tags : kotlin.collections.List = // kotlin.collections.List | Tags to filter by try { - val result : kotlin.Array = apiInstance.findPetsByTags(tags) + val result : kotlin.collections.List = apiInstance.findPetsByTags(tags) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByTags") @@ -189,11 +189,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tags** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Tags to filter by | + **tags** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Tags to filter by | ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization diff --git a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/docs/UserApi.md b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/docs/UserApi.md index 0f55f06bc629..fd98ce696add 100644 --- a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/docs/UserApi.md +++ b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/docs/UserApi.md @@ -73,7 +73,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithArrayInput(body) } catch (e: ClientException) { @@ -89,7 +89,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type @@ -117,7 +117,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithListInput(body) } catch (e: ClientException) { @@ -133,7 +133,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type diff --git a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index 565a31075c95..1cff24913d64 100644 --- a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -119,14 +119,14 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * Finds Pets by status * Multiple status values can be provided with comma separated strings * @param status Status values that need to be considered for filter - * @return kotlin.Array + * @return kotlin.collections.List * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response * @throws ServerException If the API returns a server error response */ @Suppress("UNCHECKED_CAST") @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - suspend fun findPetsByStatus(status: kotlin.Array) : kotlin.Array { + suspend fun findPetsByStatus(status: kotlin.collections.List) : kotlin.collections.List { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -139,13 +139,13 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { query = localVariableQuery, headers = localVariableHeaders ) - val localVarResponse = request>( + val localVarResponse = request>( localVariableConfig, localVariableBody ) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.Array + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { @@ -163,7 +163,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * Finds Pets by tags * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. * @param tags Tags to filter by - * @return kotlin.Array + * @return kotlin.collections.List * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response * @throws ServerException If the API returns a server error response @@ -171,7 +171,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { @Suppress("UNCHECKED_CAST") @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) @Deprecated(message = "This operation is deprecated.") - suspend fun findPetsByTags(tags: kotlin.Array) : kotlin.Array { + suspend fun findPetsByTags(tags: kotlin.collections.List) : kotlin.collections.List { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -184,13 +184,13 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { query = localVariableQuery, headers = localVariableHeaders ) - val localVarResponse = request>( + val localVarResponse = request>( localVariableConfig, localVariableBody ) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.Array + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { diff --git a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index 0bd96e7456c3..6494674c7f3d 100644 --- a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -83,7 +83,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - suspend fun createUsersWithArrayInput(body: kotlin.Array) : Unit { + suspend fun createUsersWithArrayInput(body: kotlin.collections.List) : Unit { val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() @@ -123,7 +123,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - suspend fun createUsersWithListInput(body: kotlin.Array) : Unit { + suspend fun createUsersWithListInput(body: kotlin.collections.List) : Unit { val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() diff --git a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt index 83b19bd556f0..fc89bf34e7fc 100644 --- a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt +++ b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * Describes the result of uploading an image resource * @param code diff --git a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Category.kt index 60962ece7d4e..b483bee69b3e 100644 --- a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * A category for a pet * @param id diff --git a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Order.kt index 474530938cf5..d6bacf867c47 100644 --- a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * An order for a pets from the pet store * @param id diff --git a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Pet.kt index 2fc4113d2059..afa65785d387 100644 --- a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -16,6 +16,7 @@ import org.openapitools.client.models.Tag import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * A pet for sale in the pet store * @param name @@ -30,13 +31,13 @@ data class Pet ( @SerializedName("name") val name: kotlin.String, @SerializedName("photoUrls") - val photoUrls: kotlin.Array, + val photoUrls: kotlin.collections.List, @SerializedName("id") val id: kotlin.Long? = null, @SerializedName("category") val category: Category? = null, @SerializedName("tags") - val tags: kotlin.Array? = null, + val tags: kotlin.collections.List? = null, /* pet status in the store */ @SerializedName("status") val status: Pet.Status? = null diff --git a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Tag.kt index 0e1786917625..a1a282cb38df 100644 --- a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * A tag for a pet * @param id diff --git a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/User.kt index daa329717364..59ba0254f603 100644 --- a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/User.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * A User who is purchasing from the pet store * @param id diff --git a/samples/client/petstore/kotlin-moshi-codegen/docs/Pet.md b/samples/client/petstore/kotlin-moshi-codegen/docs/Pet.md index 70c340005d16..c82844b5ee80 100644 --- a/samples/client/petstore/kotlin-moshi-codegen/docs/Pet.md +++ b/samples/client/petstore/kotlin-moshi-codegen/docs/Pet.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **kotlin.String** | | -**photoUrls** | **kotlin.Array<kotlin.String>** | | +**photoUrls** | **kotlin.collections.List<kotlin.String>** | | **id** | **kotlin.Long** | | [optional] **category** | [**Category**](Category.md) | | [optional] -**tags** | [**kotlin.Array<Tag>**](Tag.md) | | [optional] +**tags** | [**kotlin.collections.List<Tag>**](Tag.md) | | [optional] **status** | [**inline**](#StatusEnum) | pet status in the store | [optional] diff --git a/samples/client/petstore/kotlin-moshi-codegen/docs/PetApi.md b/samples/client/petstore/kotlin-moshi-codegen/docs/PetApi.md index ea93e1745279..27289c31c243 100644 --- a/samples/client/petstore/kotlin-moshi-codegen/docs/PetApi.md +++ b/samples/client/petstore/kotlin-moshi-codegen/docs/PetApi.md @@ -110,7 +110,7 @@ Configure petstore_auth: # **findPetsByStatus** -> kotlin.Array<Pet> findPetsByStatus(status) +> kotlin.collections.List<Pet> findPetsByStatus(status) Finds Pets by status @@ -123,9 +123,9 @@ Multiple status values can be provided with comma separated strings //import org.openapitools.client.models.* val apiInstance = PetApi() -val status : kotlin.Array = // kotlin.Array | Status values that need to be considered for filter +val status : kotlin.collections.List = // kotlin.collections.List | Status values that need to be considered for filter try { - val result : kotlin.Array = apiInstance.findPetsByStatus(status) + val result : kotlin.collections.List = apiInstance.findPetsByStatus(status) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByStatus") @@ -140,11 +140,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] + **status** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization @@ -159,7 +159,7 @@ Configure petstore_auth: # **findPetsByTags** -> kotlin.Array<Pet> findPetsByTags(tags) +> kotlin.collections.List<Pet> findPetsByTags(tags) Finds Pets by tags @@ -172,9 +172,9 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 //import org.openapitools.client.models.* val apiInstance = PetApi() -val tags : kotlin.Array = // kotlin.Array | Tags to filter by +val tags : kotlin.collections.List = // kotlin.collections.List | Tags to filter by try { - val result : kotlin.Array = apiInstance.findPetsByTags(tags) + val result : kotlin.collections.List = apiInstance.findPetsByTags(tags) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByTags") @@ -189,11 +189,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tags** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Tags to filter by | + **tags** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Tags to filter by | ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization diff --git a/samples/client/petstore/kotlin-moshi-codegen/docs/UserApi.md b/samples/client/petstore/kotlin-moshi-codegen/docs/UserApi.md index 0f55f06bc629..fd98ce696add 100644 --- a/samples/client/petstore/kotlin-moshi-codegen/docs/UserApi.md +++ b/samples/client/petstore/kotlin-moshi-codegen/docs/UserApi.md @@ -73,7 +73,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithArrayInput(body) } catch (e: ClientException) { @@ -89,7 +89,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type @@ -117,7 +117,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithListInput(body) } catch (e: ClientException) { @@ -133,7 +133,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type diff --git a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index 1c78bae10dd4..60f72b51af95 100644 --- a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -119,14 +119,14 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * Finds Pets by status * Multiple status values can be provided with comma separated strings * @param status Status values that need to be considered for filter - * @return kotlin.Array + * @return kotlin.collections.List * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response * @throws ServerException If the API returns a server error response */ @Suppress("UNCHECKED_CAST") @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun findPetsByStatus(status: kotlin.Array) : kotlin.Array { + fun findPetsByStatus(status: kotlin.collections.List) : kotlin.collections.List { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -139,13 +139,13 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { query = localVariableQuery, headers = localVariableHeaders ) - val localVarResponse = request>( + val localVarResponse = request>( localVariableConfig, localVariableBody ) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.Array + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { @@ -163,7 +163,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * Finds Pets by tags * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. * @param tags Tags to filter by - * @return kotlin.Array + * @return kotlin.collections.List * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response * @throws ServerException If the API returns a server error response @@ -171,7 +171,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { @Suppress("UNCHECKED_CAST") @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) @Deprecated(message = "This operation is deprecated.") - fun findPetsByTags(tags: kotlin.Array) : kotlin.Array { + fun findPetsByTags(tags: kotlin.collections.List) : kotlin.collections.List { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -184,13 +184,13 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { query = localVariableQuery, headers = localVariableHeaders ) - val localVarResponse = request>( + val localVarResponse = request>( localVariableConfig, localVariableBody ) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.Array + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { diff --git a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index 1e6e81fc1e91..258a2540e9e8 100644 --- a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -83,7 +83,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun createUsersWithArrayInput(body: kotlin.Array) : Unit { + fun createUsersWithArrayInput(body: kotlin.collections.List) : Unit { val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() @@ -123,7 +123,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun createUsersWithListInput(body: kotlin.Array) : Unit { + fun createUsersWithListInput(body: kotlin.collections.List) : Unit { val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() diff --git a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt index 25f8ffdf4731..18d2ce3dbbe7 100644 --- a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt +++ b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import com.squareup.moshi.JsonClass + /** * Describes the result of uploading an image resource * @param code diff --git a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Category.kt index e7229ac4384f..8396fa423574 100644 --- a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import com.squareup.moshi.JsonClass + /** * A category for a pet * @param id diff --git a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Order.kt index c408adac9951..d7091dd4c0c2 100644 --- a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import com.squareup.moshi.JsonClass + /** * An order for a pets from the pet store * @param id diff --git a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Pet.kt index abba68a06462..8b4e6b44d4cc 100644 --- a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -16,6 +16,7 @@ import org.openapitools.client.models.Tag import com.squareup.moshi.Json import com.squareup.moshi.JsonClass + /** * A pet for sale in the pet store * @param name @@ -30,13 +31,13 @@ data class Pet ( @Json(name = "name") val name: kotlin.String, @Json(name = "photoUrls") - val photoUrls: kotlin.Array, + val photoUrls: kotlin.collections.List, @Json(name = "id") val id: kotlin.Long? = null, @Json(name = "category") val category: Category? = null, @Json(name = "tags") - val tags: kotlin.Array? = null, + val tags: kotlin.collections.List? = null, /* pet status in the store */ @Json(name = "status") val status: Pet.Status? = null diff --git a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Tag.kt index c1da1f74c35c..e7cdab2bb5df 100644 --- a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import com.squareup.moshi.JsonClass + /** * A tag for a pet * @param id diff --git a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/User.kt index 3d9ab2208497..1bfad8449046 100644 --- a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/User.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import com.squareup.moshi.JsonClass + /** * A User who is purchasing from the pet store * @param id diff --git a/samples/client/petstore/kotlin-multiplatform/docs/Pet.md b/samples/client/petstore/kotlin-multiplatform/docs/Pet.md index 70c340005d16..c82844b5ee80 100644 --- a/samples/client/petstore/kotlin-multiplatform/docs/Pet.md +++ b/samples/client/petstore/kotlin-multiplatform/docs/Pet.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **kotlin.String** | | -**photoUrls** | **kotlin.Array<kotlin.String>** | | +**photoUrls** | **kotlin.collections.List<kotlin.String>** | | **id** | **kotlin.Long** | | [optional] **category** | [**Category**](Category.md) | | [optional] -**tags** | [**kotlin.Array<Tag>**](Tag.md) | | [optional] +**tags** | [**kotlin.collections.List<Tag>**](Tag.md) | | [optional] **status** | [**inline**](#StatusEnum) | pet status in the store | [optional] diff --git a/samples/client/petstore/kotlin-multiplatform/docs/PetApi.md b/samples/client/petstore/kotlin-multiplatform/docs/PetApi.md index 38df230ae673..7b3efc23d8bf 100644 --- a/samples/client/petstore/kotlin-multiplatform/docs/PetApi.md +++ b/samples/client/petstore/kotlin-multiplatform/docs/PetApi.md @@ -110,7 +110,7 @@ Configure petstore_auth: # **findPetsByStatus** -> kotlin.Array<Pet> findPetsByStatus(status) +> kotlin.collections.List<Pet> findPetsByStatus(status) Finds Pets by status @@ -123,9 +123,9 @@ Multiple status values can be provided with comma separated strings //import org.openapitools.client.models.* val apiInstance = PetApi() -val status : kotlin.Array = // kotlin.Array | Status values that need to be considered for filter +val status : kotlin.collections.List = // kotlin.collections.List | Status values that need to be considered for filter try { - val result : kotlin.Array = apiInstance.findPetsByStatus(status) + val result : kotlin.collections.List = apiInstance.findPetsByStatus(status) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByStatus") @@ -140,11 +140,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] + **status** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization @@ -159,7 +159,7 @@ Configure petstore_auth: # **findPetsByTags** -> kotlin.Array<Pet> findPetsByTags(tags) +> kotlin.collections.List<Pet> findPetsByTags(tags) Finds Pets by tags @@ -172,9 +172,9 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 //import org.openapitools.client.models.* val apiInstance = PetApi() -val tags : kotlin.Array = // kotlin.Array | Tags to filter by +val tags : kotlin.collections.List = // kotlin.collections.List | Tags to filter by try { - val result : kotlin.Array = apiInstance.findPetsByTags(tags) + val result : kotlin.collections.List = apiInstance.findPetsByTags(tags) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByTags") @@ -189,11 +189,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tags** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Tags to filter by | + **tags** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Tags to filter by | ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization diff --git a/samples/client/petstore/kotlin-multiplatform/docs/UserApi.md b/samples/client/petstore/kotlin-multiplatform/docs/UserApi.md index 0f55f06bc629..fd98ce696add 100644 --- a/samples/client/petstore/kotlin-multiplatform/docs/UserApi.md +++ b/samples/client/petstore/kotlin-multiplatform/docs/UserApi.md @@ -73,7 +73,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithArrayInput(body) } catch (e: ClientException) { @@ -89,7 +89,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type @@ -117,7 +117,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithListInput(body) } catch (e: ClientException) { @@ -133,7 +133,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type diff --git a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/PetApi.kt index aa9c34a0dca6..e164a6cf4d06 100644 --- a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/PetApi.kt @@ -26,25 +26,25 @@ import kotlinx.serialization.* import kotlinx.serialization.internal.StringDescriptor class PetApi @UseExperimental(UnstableDefault::class) constructor( - baseUrl: kotlin.String = "http://petstore.swagger.io/v2", - httpClientEngine: HttpClientEngine? = null, - serializer: KotlinxSerializer) - : ApiClient(baseUrl, httpClientEngine, serializer) { + baseUrl: kotlin.String = "http://petstore.swagger.io/v2", + httpClientEngine: HttpClientEngine? = null, + serializer: KotlinxSerializer +) : ApiClient(baseUrl, httpClientEngine, serializer) { @UseExperimental(UnstableDefault::class) constructor( baseUrl: kotlin.String = "http://petstore.swagger.io/v2", httpClientEngine: HttpClientEngine? = null, - jsonConfiguration: JsonConfiguration = JsonConfiguration.Default) - : this(baseUrl, httpClientEngine, KotlinxSerializer(Json(jsonConfiguration))) + jsonConfiguration: JsonConfiguration = JsonConfiguration.Default + ) : this(baseUrl, httpClientEngine, KotlinxSerializer(Json(jsonConfiguration))) /** - * Add a new pet to the store - * - * @param body Pet object that needs to be added to the store - * @return void - */ - suspend fun addPet(body: Pet) : HttpResponse { + * Add a new pet to the store + * + * @param body Pet object that needs to be added to the store + * @return void + */ + suspend fun addPet(body: Pet): HttpResponse { val localVariableAuthNames = listOf("petstore_auth") @@ -68,16 +68,16 @@ class PetApi @UseExperimental(UnstableDefault::class) constructor( ).wrap() } - + /** - * Deletes a pet - * - * @param petId Pet id to delete - * @param apiKey (optional) - * @return void - */ - suspend fun deletePet(petId: kotlin.Long, apiKey: kotlin.String?) : HttpResponse { + * Deletes a pet + * + * @param petId Pet id to delete + * @param apiKey (optional) + * @return void + */ + suspend fun deletePet(petId: kotlin.Long, apiKey: kotlin.String?): HttpResponse { val localVariableAuthNames = listOf("petstore_auth") @@ -91,7 +91,7 @@ class PetApi @UseExperimental(UnstableDefault::class) constructor( val localVariableConfig = RequestConfig( RequestMethod.DELETE, - "/pet/{petId}".replace("{"+"petId"+"}", "$petId"), + "/pet/{petId}".replace("{" + "petId" + "}", "$petId"), query = localVariableQuery, headers = localVariableHeaders ) @@ -105,13 +105,13 @@ class PetApi @UseExperimental(UnstableDefault::class) constructor( /** - * Finds Pets by status - * Multiple status values can be provided with comma separated strings - * @param status Status values that need to be considered for filter - * @return kotlin.Array - */ + * Finds Pets by status + * Multiple status values can be provided with comma separated strings + * @param status Status values that need to be considered for filter + * @return kotlin.collections.List + */ @Suppress("UNCHECKED_CAST") - suspend fun findPetsByStatus(status: kotlin.Array) : HttpResponse> { + suspend fun findPetsByStatus(status: kotlin.collections.List): HttpResponse> { val localVariableAuthNames = listOf("petstore_auth") @@ -134,28 +134,28 @@ class PetApi @UseExperimental(UnstableDefault::class) constructor( localVariableConfig, localVariableBody, localVariableAuthNames - ).wrap().map { value.toTypedArray() } + ).wrap().map { value } } @Serializable -private class FindPetsByStatusResponse(val value: List) { - @Serializer(FindPetsByStatusResponse::class) - companion object : KSerializer { - private val serializer: KSerializer> = Pet.serializer().list - override val descriptor = StringDescriptor.withName("FindPetsByStatusResponse") - override fun serialize(encoder: Encoder, obj: FindPetsByStatusResponse) = serializer.serialize(encoder, obj.value) - override fun deserialize(decoder: Decoder) = FindPetsByStatusResponse(serializer.deserialize(decoder)) + private class FindPetsByStatusResponse(val value: List) { + @Serializer(FindPetsByStatusResponse::class) + companion object : KSerializer { + private val serializer: KSerializer> = Pet.serializer().list + override val descriptor = StringDescriptor.withName("FindPetsByStatusResponse") + override fun serialize(encoder: Encoder, obj: FindPetsByStatusResponse) = serializer.serialize(encoder, obj.value) + override fun deserialize(decoder: Decoder) = FindPetsByStatusResponse(serializer.deserialize(decoder)) + } } -} /** - * Finds Pets by tags - * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. - * @param tags Tags to filter by - * @return kotlin.Array - */ + * Finds Pets by tags + * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + * @param tags Tags to filter by + * @return kotlin.collections.List + */ @Suppress("UNCHECKED_CAST") - suspend fun findPetsByTags(tags: kotlin.Array) : HttpResponse> { + suspend fun findPetsByTags(tags: kotlin.collections.List): HttpResponse> { val localVariableAuthNames = listOf("petstore_auth") @@ -178,28 +178,28 @@ private class FindPetsByStatusResponse(val value: List) { localVariableConfig, localVariableBody, localVariableAuthNames - ).wrap().map { value.toTypedArray() } + ).wrap().map { value } } @Serializable -private class FindPetsByTagsResponse(val value: List) { - @Serializer(FindPetsByTagsResponse::class) - companion object : KSerializer { - private val serializer: KSerializer> = Pet.serializer().list - override val descriptor = StringDescriptor.withName("FindPetsByTagsResponse") - override fun serialize(encoder: Encoder, obj: FindPetsByTagsResponse) = serializer.serialize(encoder, obj.value) - override fun deserialize(decoder: Decoder) = FindPetsByTagsResponse(serializer.deserialize(decoder)) + private class FindPetsByTagsResponse(val value: List) { + @Serializer(FindPetsByTagsResponse::class) + companion object : KSerializer { + private val serializer: KSerializer> = Pet.serializer().list + override val descriptor = StringDescriptor.withName("FindPetsByTagsResponse") + override fun serialize(encoder: Encoder, obj: FindPetsByTagsResponse) = serializer.serialize(encoder, obj.value) + override fun deserialize(decoder: Decoder) = FindPetsByTagsResponse(serializer.deserialize(decoder)) + } } -} /** - * Find pet by ID - * Returns a single pet - * @param petId ID of pet to return - * @return Pet - */ + * Find pet by ID + * Returns a single pet + * @param petId ID of pet to return + * @return Pet + */ @Suppress("UNCHECKED_CAST") - suspend fun getPetById(petId: kotlin.Long) : HttpResponse { + suspend fun getPetById(petId: kotlin.Long): HttpResponse { val localVariableAuthNames = listOf("api_key") @@ -212,7 +212,7 @@ private class FindPetsByTagsResponse(val value: List) { val localVariableConfig = RequestConfig( RequestMethod.GET, - "/pet/{petId}".replace("{"+"petId"+"}", "$petId"), + "/pet/{petId}".replace("{" + "petId" + "}", "$petId"), query = localVariableQuery, headers = localVariableHeaders ) @@ -226,12 +226,12 @@ private class FindPetsByTagsResponse(val value: List) { /** - * Update an existing pet - * - * @param body Pet object that needs to be added to the store - * @return void - */ - suspend fun updatePet(body: Pet) : HttpResponse { + * Update an existing pet + * + * @param body Pet object that needs to be added to the store + * @return void + */ + suspend fun updatePet(body: Pet): HttpResponse { val localVariableAuthNames = listOf("petstore_auth") @@ -255,17 +255,17 @@ private class FindPetsByTagsResponse(val value: List) { ).wrap() } - + /** - * Updates a pet in the store with form data - * - * @param petId ID of pet that needs to be updated - * @param name Updated name of the pet (optional) - * @param status Updated status of the pet (optional) - * @return void - */ - suspend fun updatePetWithForm(petId: kotlin.Long, name: kotlin.String?, status: kotlin.String?) : HttpResponse { + * Updates a pet in the store with form data + * + * @param petId ID of pet that needs to be updated + * @param name Updated name of the pet (optional) + * @param status Updated status of the pet (optional) + * @return void + */ + suspend fun updatePetWithForm(petId: kotlin.Long, name: kotlin.String?, status: kotlin.String?): HttpResponse { val localVariableAuthNames = listOf("petstore_auth") @@ -281,7 +281,7 @@ private class FindPetsByTagsResponse(val value: List) { val localVariableConfig = RequestConfig( RequestMethod.POST, - "/pet/{petId}".replace("{"+"petId"+"}", "$petId"), + "/pet/{petId}".replace("{" + "petId" + "}", "$petId"), query = localVariableQuery, headers = localVariableHeaders ) @@ -295,15 +295,15 @@ private class FindPetsByTagsResponse(val value: List) { /** - * uploads an image - * - * @param petId ID of pet to update - * @param additionalMetadata Additional data to pass to server (optional) - * @param file file to upload (optional) - * @return ApiResponse - */ + * uploads an image + * + * @param petId ID of pet to update + * @param additionalMetadata Additional data to pass to server (optional) + * @param file file to upload (optional) + * @return ApiResponse + */ @Suppress("UNCHECKED_CAST") - suspend fun uploadFile(petId: kotlin.Long, additionalMetadata: kotlin.String?, file: io.ktor.client.request.forms.InputProvider?) : HttpResponse { + suspend fun uploadFile(petId: kotlin.Long, additionalMetadata: kotlin.String?, file: io.ktor.client.request.forms.InputProvider?): HttpResponse { val localVariableAuthNames = listOf("petstore_auth") @@ -319,7 +319,7 @@ private class FindPetsByTagsResponse(val value: List) { val localVariableConfig = RequestConfig( RequestMethod.POST, - "/pet/{petId}/uploadImage".replace("{"+"petId"+"}", "$petId"), + "/pet/{petId}/uploadImage".replace("{" + "petId" + "}", "$petId"), query = localVariableQuery, headers = localVariableHeaders ) diff --git a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/StoreApi.kt index 56a581d3725a..8ca30e8ca3a3 100644 --- a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/StoreApi.kt +++ b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/StoreApi.kt @@ -25,25 +25,25 @@ import kotlinx.serialization.* import kotlinx.serialization.internal.StringDescriptor class StoreApi @UseExperimental(UnstableDefault::class) constructor( - baseUrl: kotlin.String = "http://petstore.swagger.io/v2", - httpClientEngine: HttpClientEngine? = null, - serializer: KotlinxSerializer) - : ApiClient(baseUrl, httpClientEngine, serializer) { + baseUrl: kotlin.String = "http://petstore.swagger.io/v2", + httpClientEngine: HttpClientEngine? = null, + serializer: KotlinxSerializer +) : ApiClient(baseUrl, httpClientEngine, serializer) { @UseExperimental(UnstableDefault::class) constructor( baseUrl: kotlin.String = "http://petstore.swagger.io/v2", httpClientEngine: HttpClientEngine? = null, - jsonConfiguration: JsonConfiguration = JsonConfiguration.Default) - : this(baseUrl, httpClientEngine, KotlinxSerializer(Json(jsonConfiguration))) + jsonConfiguration: JsonConfiguration = JsonConfiguration.Default + ) : this(baseUrl, httpClientEngine, KotlinxSerializer(Json(jsonConfiguration))) /** - * Delete purchase order by ID - * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors - * @param orderId ID of the order that needs to be deleted - * @return void - */ - suspend fun deleteOrder(orderId: kotlin.String) : HttpResponse { + * Delete purchase order by ID + * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors + * @param orderId ID of the order that needs to be deleted + * @return void + */ + suspend fun deleteOrder(orderId: kotlin.String): HttpResponse { val localVariableAuthNames = listOf() @@ -56,7 +56,7 @@ class StoreApi @UseExperimental(UnstableDefault::class) constructor( val localVariableConfig = RequestConfig( RequestMethod.DELETE, - "/store/order/{orderId}".replace("{"+"orderId"+"}", "$orderId"), + "/store/order/{orderId}".replace("{" + "orderId" + "}", "$orderId"), query = localVariableQuery, headers = localVariableHeaders ) @@ -70,12 +70,12 @@ class StoreApi @UseExperimental(UnstableDefault::class) constructor( /** - * Returns pet inventories by status - * Returns a map of status codes to quantities - * @return kotlin.collections.Map - */ + * Returns pet inventories by status + * Returns a map of status codes to quantities + * @return kotlin.collections.Map + */ @Suppress("UNCHECKED_CAST") - suspend fun getInventory() : HttpResponse> { + suspend fun getInventory(): HttpResponse> { val localVariableAuthNames = listOf("api_key") @@ -101,24 +101,24 @@ class StoreApi @UseExperimental(UnstableDefault::class) constructor( } @Serializable -private class GetInventoryResponse(val value: Map) { - @Serializer(GetInventoryResponse::class) - companion object : KSerializer { - private val serializer: KSerializer> = (kotlin.String.serializer() to kotlin.Int.serializer()).map - override val descriptor = StringDescriptor.withName("GetInventoryResponse") - override fun serialize(encoder: Encoder, obj: GetInventoryResponse) = serializer.serialize(encoder, obj.value) - override fun deserialize(decoder: Decoder) = GetInventoryResponse(serializer.deserialize(decoder)) + private class GetInventoryResponse(val value: Map) { + @Serializer(GetInventoryResponse::class) + companion object : KSerializer { + private val serializer: KSerializer> = (kotlin.String.serializer() to kotlin.Int.serializer()).map + override val descriptor = StringDescriptor.withName("GetInventoryResponse") + override fun serialize(encoder: Encoder, obj: GetInventoryResponse) = serializer.serialize(encoder, obj.value) + override fun deserialize(decoder: Decoder) = GetInventoryResponse(serializer.deserialize(decoder)) + } } -} /** - * Find purchase order by ID - * For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions - * @param orderId ID of pet that needs to be fetched - * @return Order - */ + * Find purchase order by ID + * For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions + * @param orderId ID of pet that needs to be fetched + * @return Order + */ @Suppress("UNCHECKED_CAST") - suspend fun getOrderById(orderId: kotlin.Long) : HttpResponse { + suspend fun getOrderById(orderId: kotlin.Long): HttpResponse { val localVariableAuthNames = listOf() @@ -131,7 +131,7 @@ private class GetInventoryResponse(val value: Map) { val localVariableConfig = RequestConfig( RequestMethod.GET, - "/store/order/{orderId}".replace("{"+"orderId"+"}", "$orderId"), + "/store/order/{orderId}".replace("{" + "orderId" + "}", "$orderId"), query = localVariableQuery, headers = localVariableHeaders ) @@ -145,13 +145,13 @@ private class GetInventoryResponse(val value: Map) { /** - * Place an order for a pet - * - * @param body order placed for purchasing the pet - * @return Order - */ + * Place an order for a pet + * + * @param body order placed for purchasing the pet + * @return Order + */ @Suppress("UNCHECKED_CAST") - suspend fun placeOrder(body: Order) : HttpResponse { + suspend fun placeOrder(body: Order): HttpResponse { val localVariableAuthNames = listOf() @@ -175,7 +175,7 @@ private class GetInventoryResponse(val value: Map) { ).wrap() } - + companion object { diff --git a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/UserApi.kt index 6786d3d3f331..88474dc9ef80 100644 --- a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/UserApi.kt @@ -25,25 +25,25 @@ import kotlinx.serialization.* import kotlinx.serialization.internal.StringDescriptor class UserApi @UseExperimental(UnstableDefault::class) constructor( - baseUrl: kotlin.String = "http://petstore.swagger.io/v2", - httpClientEngine: HttpClientEngine? = null, - serializer: KotlinxSerializer) - : ApiClient(baseUrl, httpClientEngine, serializer) { + baseUrl: kotlin.String = "http://petstore.swagger.io/v2", + httpClientEngine: HttpClientEngine? = null, + serializer: KotlinxSerializer +) : ApiClient(baseUrl, httpClientEngine, serializer) { @UseExperimental(UnstableDefault::class) constructor( baseUrl: kotlin.String = "http://petstore.swagger.io/v2", httpClientEngine: HttpClientEngine? = null, - jsonConfiguration: JsonConfiguration = JsonConfiguration.Default) - : this(baseUrl, httpClientEngine, KotlinxSerializer(Json(jsonConfiguration))) + jsonConfiguration: JsonConfiguration = JsonConfiguration.Default + ) : this(baseUrl, httpClientEngine, KotlinxSerializer(Json(jsonConfiguration))) /** - * Create user - * This can only be done by the logged in user. - * @param body Created user object - * @return void - */ - suspend fun createUser(body: User) : HttpResponse { + * Create user + * This can only be done by the logged in user. + * @param body Created user object + * @return void + */ + suspend fun createUser(body: User): HttpResponse { val localVariableAuthNames = listOf() @@ -67,19 +67,19 @@ class UserApi @UseExperimental(UnstableDefault::class) constructor( ).wrap() } - + /** - * Creates list of users with given input array - * - * @param body List of user object - * @return void - */ - suspend fun createUsersWithArrayInput(body: kotlin.Array) : HttpResponse { + * Creates list of users with given input array + * + * @param body List of user object + * @return void + */ + suspend fun createUsersWithArrayInput(body: kotlin.collections.List): HttpResponse { val localVariableAuthNames = listOf() - val localVariableBody = CreateUsersWithArrayInputRequest(body.asList()) + val localVariableBody = CreateUsersWithArrayInputRequest(body) val localVariableQuery = mutableMapOf>() @@ -100,27 +100,27 @@ class UserApi @UseExperimental(UnstableDefault::class) constructor( } @Serializable -private class CreateUsersWithArrayInputRequest(val value: List) { - @Serializer(CreateUsersWithArrayInputRequest::class) - companion object : KSerializer { - private val serializer: KSerializer> = User.serializer().list - override val descriptor = StringDescriptor.withName("CreateUsersWithArrayInputRequest") - override fun serialize(encoder: Encoder, obj: CreateUsersWithArrayInputRequest) = serializer.serialize(encoder, obj.value) - override fun deserialize(decoder: Decoder) = CreateUsersWithArrayInputRequest(serializer.deserialize(decoder)) + private class CreateUsersWithArrayInputRequest(val value: List) { + @Serializer(CreateUsersWithArrayInputRequest::class) + companion object : KSerializer { + private val serializer: KSerializer> = User.serializer().list + override val descriptor = StringDescriptor.withName("CreateUsersWithArrayInputRequest") + override fun serialize(encoder: Encoder, obj: CreateUsersWithArrayInputRequest) = serializer.serialize(encoder, obj.value) + override fun deserialize(decoder: Decoder) = CreateUsersWithArrayInputRequest(serializer.deserialize(decoder)) + } } -} /** - * Creates list of users with given input array - * - * @param body List of user object - * @return void - */ - suspend fun createUsersWithListInput(body: kotlin.Array) : HttpResponse { + * Creates list of users with given input array + * + * @param body List of user object + * @return void + */ + suspend fun createUsersWithListInput(body: kotlin.collections.List): HttpResponse { val localVariableAuthNames = listOf() - val localVariableBody = CreateUsersWithListInputRequest(body.asList()) + val localVariableBody = CreateUsersWithListInputRequest(body) val localVariableQuery = mutableMapOf>() @@ -141,23 +141,23 @@ private class CreateUsersWithArrayInputRequest(val value: List) { } @Serializable -private class CreateUsersWithListInputRequest(val value: List) { - @Serializer(CreateUsersWithListInputRequest::class) - companion object : KSerializer { - private val serializer: KSerializer> = User.serializer().list - override val descriptor = StringDescriptor.withName("CreateUsersWithListInputRequest") - override fun serialize(encoder: Encoder, obj: CreateUsersWithListInputRequest) = serializer.serialize(encoder, obj.value) - override fun deserialize(decoder: Decoder) = CreateUsersWithListInputRequest(serializer.deserialize(decoder)) + private class CreateUsersWithListInputRequest(val value: List) { + @Serializer(CreateUsersWithListInputRequest::class) + companion object : KSerializer { + private val serializer: KSerializer> = User.serializer().list + override val descriptor = StringDescriptor.withName("CreateUsersWithListInputRequest") + override fun serialize(encoder: Encoder, obj: CreateUsersWithListInputRequest) = serializer.serialize(encoder, obj.value) + override fun deserialize(decoder: Decoder) = CreateUsersWithListInputRequest(serializer.deserialize(decoder)) + } } -} /** - * Delete user - * This can only be done by the logged in user. - * @param username The name that needs to be deleted - * @return void - */ - suspend fun deleteUser(username: kotlin.String) : HttpResponse { + * Delete user + * This can only be done by the logged in user. + * @param username The name that needs to be deleted + * @return void + */ + suspend fun deleteUser(username: kotlin.String): HttpResponse { val localVariableAuthNames = listOf() @@ -170,7 +170,7 @@ private class CreateUsersWithListInputRequest(val value: List) { val localVariableConfig = RequestConfig( RequestMethod.DELETE, - "/user/{username}".replace("{"+"username"+"}", "$username"), + "/user/{username}".replace("{" + "username" + "}", "$username"), query = localVariableQuery, headers = localVariableHeaders ) @@ -184,13 +184,13 @@ private class CreateUsersWithListInputRequest(val value: List) { /** - * Get user by user name - * - * @param username The name that needs to be fetched. Use user1 for testing. - * @return User - */ + * Get user by user name + * + * @param username The name that needs to be fetched. Use user1 for testing. + * @return User + */ @Suppress("UNCHECKED_CAST") - suspend fun getUserByName(username: kotlin.String) : HttpResponse { + suspend fun getUserByName(username: kotlin.String): HttpResponse { val localVariableAuthNames = listOf() @@ -203,7 +203,7 @@ private class CreateUsersWithListInputRequest(val value: List) { val localVariableConfig = RequestConfig( RequestMethod.GET, - "/user/{username}".replace("{"+"username"+"}", "$username"), + "/user/{username}".replace("{" + "username" + "}", "$username"), query = localVariableQuery, headers = localVariableHeaders ) @@ -217,14 +217,14 @@ private class CreateUsersWithListInputRequest(val value: List) { /** - * Logs user into the system - * - * @param username The user name for login - * @param password The password for login in clear text - * @return kotlin.String - */ + * Logs user into the system + * + * @param username The user name for login + * @param password The password for login in clear text + * @return kotlin.String + */ @Suppress("UNCHECKED_CAST") - suspend fun loginUser(username: kotlin.String, password: kotlin.String) : HttpResponse { + suspend fun loginUser(username: kotlin.String, password: kotlin.String): HttpResponse { val localVariableAuthNames = listOf() @@ -253,11 +253,11 @@ private class CreateUsersWithListInputRequest(val value: List) { /** - * Logs out current logged in user session - * - * @return void - */ - suspend fun logoutUser() : HttpResponse { + * Logs out current logged in user session + * + * @return void + */ + suspend fun logoutUser(): HttpResponse { val localVariableAuthNames = listOf() @@ -284,13 +284,13 @@ private class CreateUsersWithListInputRequest(val value: List) { /** - * Updated user - * This can only be done by the logged in user. - * @param username name that need to be deleted - * @param body Updated user object - * @return void - */ - suspend fun updateUser(username: kotlin.String, body: User) : HttpResponse { + * Updated user + * This can only be done by the logged in user. + * @param username name that need to be deleted + * @param body Updated user object + * @return void + */ + suspend fun updateUser(username: kotlin.String, body: User): HttpResponse { val localVariableAuthNames = listOf() @@ -302,7 +302,7 @@ private class CreateUsersWithListInputRequest(val value: List) { val localVariableConfig = RequestConfig( RequestMethod.PUT, - "/user/{username}".replace("{"+"username"+"}", "$username"), + "/user/{username}".replace("{" + "username" + "}", "$username"), query = localVariableQuery, headers = localVariableHeaders ) @@ -314,7 +314,7 @@ private class CreateUsersWithListInputRequest(val value: List) { ).wrap() } - + companion object { diff --git a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ApiResponse.kt b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ApiResponse.kt index 51ab6ed93980..a035628a8f93 100644 --- a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ApiResponse.kt +++ b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ApiResponse.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * Describes the result of uploading an image resource * @param code diff --git a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Category.kt index 96432c658ada..d5f9a45fd4de 100644 --- a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Category.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * A category for a pet * @param id diff --git a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Order.kt index ec1a0d28e317..f1bd6ce4d0b8 100644 --- a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Order.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * An order for a pets from the pet store * @param id diff --git a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Pet.kt index 5e33d0056708..473cbaa959ac 100644 --- a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Pet.kt @@ -16,6 +16,7 @@ import org.openapitools.client.models.Tag import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * A pet for sale in the pet store * @param name @@ -28,10 +29,10 @@ import kotlinx.serialization.internal.CommonEnumSerializer @Serializable data class Pet ( @SerialName(value = "name") @Required val name: kotlin.String, - @SerialName(value = "photoUrls") @Required val photoUrls: kotlin.Array, + @SerialName(value = "photoUrls") @Required val photoUrls: kotlin.collections.List, @SerialName(value = "id") val id: kotlin.Long? = null, @SerialName(value = "category") val category: Category? = null, - @SerialName(value = "tags") val tags: kotlin.Array? = null, + @SerialName(value = "tags") val tags: kotlin.collections.List? = null, /* pet status in the store */ @SerialName(value = "status") val status: Pet.Status? = null ) { diff --git a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Tag.kt index b21e51bf8d3b..6116e50d3f92 100644 --- a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Tag.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * A tag for a pet * @param id diff --git a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/User.kt index 7d52e737d49e..97b53a049c1d 100644 --- a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/User.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * A User who is purchasing from the pet store * @param id diff --git a/samples/client/petstore/kotlin-nonpublic/docs/Pet.md b/samples/client/petstore/kotlin-nonpublic/docs/Pet.md index 70c340005d16..c82844b5ee80 100644 --- a/samples/client/petstore/kotlin-nonpublic/docs/Pet.md +++ b/samples/client/petstore/kotlin-nonpublic/docs/Pet.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **kotlin.String** | | -**photoUrls** | **kotlin.Array<kotlin.String>** | | +**photoUrls** | **kotlin.collections.List<kotlin.String>** | | **id** | **kotlin.Long** | | [optional] **category** | [**Category**](Category.md) | | [optional] -**tags** | [**kotlin.Array<Tag>**](Tag.md) | | [optional] +**tags** | [**kotlin.collections.List<Tag>**](Tag.md) | | [optional] **status** | [**inline**](#StatusEnum) | pet status in the store | [optional] diff --git a/samples/client/petstore/kotlin-nonpublic/docs/PetApi.md b/samples/client/petstore/kotlin-nonpublic/docs/PetApi.md index ea93e1745279..27289c31c243 100644 --- a/samples/client/petstore/kotlin-nonpublic/docs/PetApi.md +++ b/samples/client/petstore/kotlin-nonpublic/docs/PetApi.md @@ -110,7 +110,7 @@ Configure petstore_auth: # **findPetsByStatus** -> kotlin.Array<Pet> findPetsByStatus(status) +> kotlin.collections.List<Pet> findPetsByStatus(status) Finds Pets by status @@ -123,9 +123,9 @@ Multiple status values can be provided with comma separated strings //import org.openapitools.client.models.* val apiInstance = PetApi() -val status : kotlin.Array = // kotlin.Array | Status values that need to be considered for filter +val status : kotlin.collections.List = // kotlin.collections.List | Status values that need to be considered for filter try { - val result : kotlin.Array = apiInstance.findPetsByStatus(status) + val result : kotlin.collections.List = apiInstance.findPetsByStatus(status) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByStatus") @@ -140,11 +140,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] + **status** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization @@ -159,7 +159,7 @@ Configure petstore_auth: # **findPetsByTags** -> kotlin.Array<Pet> findPetsByTags(tags) +> kotlin.collections.List<Pet> findPetsByTags(tags) Finds Pets by tags @@ -172,9 +172,9 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 //import org.openapitools.client.models.* val apiInstance = PetApi() -val tags : kotlin.Array = // kotlin.Array | Tags to filter by +val tags : kotlin.collections.List = // kotlin.collections.List | Tags to filter by try { - val result : kotlin.Array = apiInstance.findPetsByTags(tags) + val result : kotlin.collections.List = apiInstance.findPetsByTags(tags) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByTags") @@ -189,11 +189,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tags** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Tags to filter by | + **tags** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Tags to filter by | ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization diff --git a/samples/client/petstore/kotlin-nonpublic/docs/UserApi.md b/samples/client/petstore/kotlin-nonpublic/docs/UserApi.md index 0f55f06bc629..fd98ce696add 100644 --- a/samples/client/petstore/kotlin-nonpublic/docs/UserApi.md +++ b/samples/client/petstore/kotlin-nonpublic/docs/UserApi.md @@ -73,7 +73,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithArrayInput(body) } catch (e: ClientException) { @@ -89,7 +89,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type @@ -117,7 +117,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithListInput(body) } catch (e: ClientException) { @@ -133,7 +133,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type diff --git a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index 86c0c67a4d2f..5e930e963956 100644 --- a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -119,14 +119,14 @@ internal class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(bas * Finds Pets by status * Multiple status values can be provided with comma separated strings * @param status Status values that need to be considered for filter - * @return kotlin.Array + * @return kotlin.collections.List * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response * @throws ServerException If the API returns a server error response */ @Suppress("UNCHECKED_CAST") @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun findPetsByStatus(status: kotlin.Array) : kotlin.Array { + fun findPetsByStatus(status: kotlin.collections.List) : kotlin.collections.List { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -139,13 +139,13 @@ internal class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(bas query = localVariableQuery, headers = localVariableHeaders ) - val localVarResponse = request>( + val localVarResponse = request>( localVariableConfig, localVariableBody ) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.Array + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { @@ -163,7 +163,7 @@ internal class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(bas * Finds Pets by tags * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. * @param tags Tags to filter by - * @return kotlin.Array + * @return kotlin.collections.List * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response * @throws ServerException If the API returns a server error response @@ -171,7 +171,7 @@ internal class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(bas @Suppress("UNCHECKED_CAST") @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) @Deprecated(message = "This operation is deprecated.") - fun findPetsByTags(tags: kotlin.Array) : kotlin.Array { + fun findPetsByTags(tags: kotlin.collections.List) : kotlin.collections.List { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -184,13 +184,13 @@ internal class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(bas query = localVariableQuery, headers = localVariableHeaders ) - val localVarResponse = request>( + val localVarResponse = request>( localVariableConfig, localVariableBody ) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.Array + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { diff --git a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index eba7b8392e8d..725b36b01060 100644 --- a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -83,7 +83,7 @@ internal class UserApi(basePath: kotlin.String = defaultBasePath) : ApiClient(ba * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun createUsersWithArrayInput(body: kotlin.Array) : Unit { + fun createUsersWithArrayInput(body: kotlin.collections.List) : Unit { val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() @@ -123,7 +123,7 @@ internal class UserApi(basePath: kotlin.String = defaultBasePath) : ApiClient(ba * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun createUsersWithListInput(body: kotlin.Array) : Unit { + fun createUsersWithListInput(body: kotlin.collections.List) : Unit { val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() diff --git a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt index 4a2f8b137ccc..a695278dfa3c 100644 --- a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt +++ b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json + /** * Describes the result of uploading an image resource * @param code diff --git a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Category.kt index 10d567d3c3cd..376994a9b250 100644 --- a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json + /** * A category for a pet * @param id diff --git a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Order.kt index 8a44803771b2..a943b97c1ea3 100644 --- a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json + /** * An order for a pets from the pet store * @param id diff --git a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Pet.kt index fe63282fa215..544fab20f5a7 100644 --- a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -15,6 +15,7 @@ import org.openapitools.client.models.Category import org.openapitools.client.models.Tag import com.squareup.moshi.Json + /** * A pet for sale in the pet store * @param name @@ -29,13 +30,13 @@ internal data class Pet ( @Json(name = "name") val name: kotlin.String, @Json(name = "photoUrls") - val photoUrls: kotlin.Array, + val photoUrls: kotlin.collections.List, @Json(name = "id") val id: kotlin.Long? = null, @Json(name = "category") val category: Category? = null, @Json(name = "tags") - val tags: kotlin.Array? = null, + val tags: kotlin.collections.List? = null, /* pet status in the store */ @Json(name = "status") val status: Pet.Status? = null diff --git a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Tag.kt index 2a130c6cd1d8..d9b84e93eafd 100644 --- a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json + /** * A tag for a pet * @param id diff --git a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/User.kt index afac563f29c4..e0e821cd7e38 100644 --- a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/User.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json + /** * A User who is purchasing from the pet store * @param id diff --git a/samples/client/petstore/kotlin-nullable/docs/Pet.md b/samples/client/petstore/kotlin-nullable/docs/Pet.md index 70c340005d16..c82844b5ee80 100644 --- a/samples/client/petstore/kotlin-nullable/docs/Pet.md +++ b/samples/client/petstore/kotlin-nullable/docs/Pet.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **kotlin.String** | | -**photoUrls** | **kotlin.Array<kotlin.String>** | | +**photoUrls** | **kotlin.collections.List<kotlin.String>** | | **id** | **kotlin.Long** | | [optional] **category** | [**Category**](Category.md) | | [optional] -**tags** | [**kotlin.Array<Tag>**](Tag.md) | | [optional] +**tags** | [**kotlin.collections.List<Tag>**](Tag.md) | | [optional] **status** | [**inline**](#StatusEnum) | pet status in the store | [optional] diff --git a/samples/client/petstore/kotlin-nullable/docs/PetApi.md b/samples/client/petstore/kotlin-nullable/docs/PetApi.md index b9337d3d62a2..42a28f741c76 100644 --- a/samples/client/petstore/kotlin-nullable/docs/PetApi.md +++ b/samples/client/petstore/kotlin-nullable/docs/PetApi.md @@ -110,7 +110,7 @@ Configure petstore_auth: # **findPetsByStatus** -> kotlin.Array<Pet> findPetsByStatus(status) +> kotlin.collections.List<Pet> findPetsByStatus(status) Finds Pets by status @@ -123,9 +123,9 @@ Multiple status values can be provided with comma separated strings //import org.openapitools.client.models.* val apiInstance = PetApi() -val status : kotlin.Array = // kotlin.Array | Status values that need to be considered for filter +val status : kotlin.collections.List = // kotlin.collections.List | Status values that need to be considered for filter try { - val result : kotlin.Array? = apiInstance.findPetsByStatus(status) + val result : kotlin.collections.List? = apiInstance.findPetsByStatus(status) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByStatus") @@ -140,11 +140,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] + **status** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization @@ -159,7 +159,7 @@ Configure petstore_auth: # **findPetsByTags** -> kotlin.Array<Pet> findPetsByTags(tags) +> kotlin.collections.List<Pet> findPetsByTags(tags) Finds Pets by tags @@ -172,9 +172,9 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 //import org.openapitools.client.models.* val apiInstance = PetApi() -val tags : kotlin.Array = // kotlin.Array | Tags to filter by +val tags : kotlin.collections.List = // kotlin.collections.List | Tags to filter by try { - val result : kotlin.Array? = apiInstance.findPetsByTags(tags) + val result : kotlin.collections.List? = apiInstance.findPetsByTags(tags) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByTags") @@ -189,11 +189,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tags** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Tags to filter by | + **tags** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Tags to filter by | ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization diff --git a/samples/client/petstore/kotlin-nullable/docs/UserApi.md b/samples/client/petstore/kotlin-nullable/docs/UserApi.md index 57f651f0b12b..d91ca1e97cf8 100644 --- a/samples/client/petstore/kotlin-nullable/docs/UserApi.md +++ b/samples/client/petstore/kotlin-nullable/docs/UserApi.md @@ -73,7 +73,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithArrayInput(body) } catch (e: ClientException) { @@ -89,7 +89,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type @@ -117,7 +117,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithListInput(body) } catch (e: ClientException) { @@ -133,7 +133,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type diff --git a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index c36372aebc0f..4b9faa2a2c46 100644 --- a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -119,14 +119,14 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * Finds Pets by status * Multiple status values can be provided with comma separated strings * @param status Status values that need to be considered for filter - * @return kotlin.Array or null + * @return kotlin.collections.List or null * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response * @throws ServerException If the API returns a server error response */ @Suppress("UNCHECKED_CAST") @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun findPetsByStatus(status: kotlin.Array) : kotlin.Array? { + fun findPetsByStatus(status: kotlin.collections.List) : kotlin.collections.List? { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -139,13 +139,13 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { query = localVariableQuery, headers = localVariableHeaders ) - val localVarResponse = request>( + val localVarResponse = request>( localVariableConfig, localVariableBody ) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.Array? + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List? ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { @@ -163,7 +163,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * Finds Pets by tags * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. * @param tags Tags to filter by - * @return kotlin.Array or null + * @return kotlin.collections.List or null * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response * @throws ServerException If the API returns a server error response @@ -171,7 +171,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { @Suppress("UNCHECKED_CAST") @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) @Deprecated(message = "This operation is deprecated.") - fun findPetsByTags(tags: kotlin.Array) : kotlin.Array? { + fun findPetsByTags(tags: kotlin.collections.List) : kotlin.collections.List? { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -184,13 +184,13 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { query = localVariableQuery, headers = localVariableHeaders ) - val localVarResponse = request>( + val localVarResponse = request>( localVariableConfig, localVariableBody ) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.Array? + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List? ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { diff --git a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index 14ce7aa5f54a..2ae5998489dd 100644 --- a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -83,7 +83,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun createUsersWithArrayInput(body: kotlin.Array) : Unit { + fun createUsersWithArrayInput(body: kotlin.collections.List) : Unit { val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() @@ -123,7 +123,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun createUsersWithListInput(body: kotlin.Array) : Unit { + fun createUsersWithListInput(body: kotlin.collections.List) : Unit { val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() diff --git a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt index 3c715519085b..7d40c8efbc2f 100644 --- a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt +++ b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * Describes the result of uploading an image resource * @param code diff --git a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Category.kt index 07955e4ff491..ceb0fbc8fe60 100644 --- a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * A category for a pet * @param id diff --git a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Order.kt index d5048059d44e..ed8f8b13a43b 100644 --- a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * An order for a pets from the pet store * @param id diff --git a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Pet.kt index 0f72fb6bd360..105f485f021d 100644 --- a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -16,6 +16,7 @@ import org.openapitools.client.models.Tag import com.squareup.moshi.Json import java.io.Serializable + /** * A pet for sale in the pet store * @param name @@ -30,13 +31,13 @@ data class Pet ( @Json(name = "name") val name: kotlin.String, @Json(name = "photoUrls") - val photoUrls: kotlin.Array, + val photoUrls: kotlin.collections.List, @Json(name = "id") val id: kotlin.Long? = null, @Json(name = "category") val category: Category? = null, @Json(name = "tags") - val tags: kotlin.Array? = null, + val tags: kotlin.collections.List? = null, /* pet status in the store */ @Json(name = "status") val status: Pet.Status? = null diff --git a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Tag.kt index fa228fbe1f49..944b1cd0a141 100644 --- a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * A tag for a pet * @param id diff --git a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/User.kt index d02cbd91abd9..9697f07d5bf8 100644 --- a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/User.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * A User who is purchasing from the pet store * @param id diff --git a/samples/client/petstore/kotlin-okhttp3/docs/Pet.md b/samples/client/petstore/kotlin-okhttp3/docs/Pet.md index 70c340005d16..c82844b5ee80 100644 --- a/samples/client/petstore/kotlin-okhttp3/docs/Pet.md +++ b/samples/client/petstore/kotlin-okhttp3/docs/Pet.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **kotlin.String** | | -**photoUrls** | **kotlin.Array<kotlin.String>** | | +**photoUrls** | **kotlin.collections.List<kotlin.String>** | | **id** | **kotlin.Long** | | [optional] **category** | [**Category**](Category.md) | | [optional] -**tags** | [**kotlin.Array<Tag>**](Tag.md) | | [optional] +**tags** | [**kotlin.collections.List<Tag>**](Tag.md) | | [optional] **status** | [**inline**](#StatusEnum) | pet status in the store | [optional] diff --git a/samples/client/petstore/kotlin-okhttp3/docs/PetApi.md b/samples/client/petstore/kotlin-okhttp3/docs/PetApi.md index ea93e1745279..27289c31c243 100644 --- a/samples/client/petstore/kotlin-okhttp3/docs/PetApi.md +++ b/samples/client/petstore/kotlin-okhttp3/docs/PetApi.md @@ -110,7 +110,7 @@ Configure petstore_auth: # **findPetsByStatus** -> kotlin.Array<Pet> findPetsByStatus(status) +> kotlin.collections.List<Pet> findPetsByStatus(status) Finds Pets by status @@ -123,9 +123,9 @@ Multiple status values can be provided with comma separated strings //import org.openapitools.client.models.* val apiInstance = PetApi() -val status : kotlin.Array = // kotlin.Array | Status values that need to be considered for filter +val status : kotlin.collections.List = // kotlin.collections.List | Status values that need to be considered for filter try { - val result : kotlin.Array = apiInstance.findPetsByStatus(status) + val result : kotlin.collections.List = apiInstance.findPetsByStatus(status) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByStatus") @@ -140,11 +140,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] + **status** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization @@ -159,7 +159,7 @@ Configure petstore_auth: # **findPetsByTags** -> kotlin.Array<Pet> findPetsByTags(tags) +> kotlin.collections.List<Pet> findPetsByTags(tags) Finds Pets by tags @@ -172,9 +172,9 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 //import org.openapitools.client.models.* val apiInstance = PetApi() -val tags : kotlin.Array = // kotlin.Array | Tags to filter by +val tags : kotlin.collections.List = // kotlin.collections.List | Tags to filter by try { - val result : kotlin.Array = apiInstance.findPetsByTags(tags) + val result : kotlin.collections.List = apiInstance.findPetsByTags(tags) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByTags") @@ -189,11 +189,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tags** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Tags to filter by | + **tags** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Tags to filter by | ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization diff --git a/samples/client/petstore/kotlin-okhttp3/docs/UserApi.md b/samples/client/petstore/kotlin-okhttp3/docs/UserApi.md index 0f55f06bc629..fd98ce696add 100644 --- a/samples/client/petstore/kotlin-okhttp3/docs/UserApi.md +++ b/samples/client/petstore/kotlin-okhttp3/docs/UserApi.md @@ -73,7 +73,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithArrayInput(body) } catch (e: ClientException) { @@ -89,7 +89,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type @@ -117,7 +117,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithListInput(body) } catch (e: ClientException) { @@ -133,7 +133,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type diff --git a/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index 1c78bae10dd4..60f72b51af95 100644 --- a/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -119,14 +119,14 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * Finds Pets by status * Multiple status values can be provided with comma separated strings * @param status Status values that need to be considered for filter - * @return kotlin.Array + * @return kotlin.collections.List * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response * @throws ServerException If the API returns a server error response */ @Suppress("UNCHECKED_CAST") @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun findPetsByStatus(status: kotlin.Array) : kotlin.Array { + fun findPetsByStatus(status: kotlin.collections.List) : kotlin.collections.List { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -139,13 +139,13 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { query = localVariableQuery, headers = localVariableHeaders ) - val localVarResponse = request>( + val localVarResponse = request>( localVariableConfig, localVariableBody ) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.Array + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { @@ -163,7 +163,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * Finds Pets by tags * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. * @param tags Tags to filter by - * @return kotlin.Array + * @return kotlin.collections.List * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response * @throws ServerException If the API returns a server error response @@ -171,7 +171,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { @Suppress("UNCHECKED_CAST") @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) @Deprecated(message = "This operation is deprecated.") - fun findPetsByTags(tags: kotlin.Array) : kotlin.Array { + fun findPetsByTags(tags: kotlin.collections.List) : kotlin.collections.List { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -184,13 +184,13 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { query = localVariableQuery, headers = localVariableHeaders ) - val localVarResponse = request>( + val localVarResponse = request>( localVariableConfig, localVariableBody ) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.Array + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { diff --git a/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index 1e6e81fc1e91..258a2540e9e8 100644 --- a/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -83,7 +83,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun createUsersWithArrayInput(body: kotlin.Array) : Unit { + fun createUsersWithArrayInput(body: kotlin.collections.List) : Unit { val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() @@ -123,7 +123,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun createUsersWithListInput(body: kotlin.Array) : Unit { + fun createUsersWithListInput(body: kotlin.collections.List) : Unit { val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() diff --git a/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt b/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt index ada15fee7a1b..fafca8738f66 100644 --- a/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt +++ b/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json + /** * Describes the result of uploading an image resource * @param code diff --git a/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/models/Category.kt index 426a0e515928..a4c17c3b49dd 100644 --- a/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json + /** * A category for a pet * @param id diff --git a/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/models/Order.kt index 3cfa5ca96263..a66c335904e7 100644 --- a/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json + /** * An order for a pets from the pet store * @param id diff --git a/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/models/Pet.kt index a94bb811c3b4..a3df06cb6eb3 100644 --- a/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -15,6 +15,7 @@ import org.openapitools.client.models.Category import org.openapitools.client.models.Tag import com.squareup.moshi.Json + /** * A pet for sale in the pet store * @param name @@ -29,13 +30,13 @@ data class Pet ( @Json(name = "name") val name: kotlin.String, @Json(name = "photoUrls") - val photoUrls: kotlin.Array, + val photoUrls: kotlin.collections.List, @Json(name = "id") val id: kotlin.Long? = null, @Json(name = "category") val category: Category? = null, @Json(name = "tags") - val tags: kotlin.Array? = null, + val tags: kotlin.collections.List? = null, /* pet status in the store */ @Json(name = "status") val status: Pet.Status? = null diff --git a/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/models/Tag.kt index f9ef87e13fbf..6e619023a5c9 100644 --- a/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json + /** * A tag for a pet * @param id diff --git a/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/models/User.kt index dfd63806da94..af1e270325de 100644 --- a/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-okhttp3/src/main/kotlin/org/openapitools/client/models/User.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json + /** * A User who is purchasing from the pet store * @param id diff --git a/samples/client/petstore/kotlin-retrofit2/docs/Pet.md b/samples/client/petstore/kotlin-retrofit2/docs/Pet.md index 70c340005d16..c82844b5ee80 100644 --- a/samples/client/petstore/kotlin-retrofit2/docs/Pet.md +++ b/samples/client/petstore/kotlin-retrofit2/docs/Pet.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **kotlin.String** | | -**photoUrls** | **kotlin.Array<kotlin.String>** | | +**photoUrls** | **kotlin.collections.List<kotlin.String>** | | **id** | **kotlin.Long** | | [optional] **category** | [**Category**](Category.md) | | [optional] -**tags** | [**kotlin.Array<Tag>**](Tag.md) | | [optional] +**tags** | [**kotlin.collections.List<Tag>**](Tag.md) | | [optional] **status** | [**inline**](#StatusEnum) | pet status in the store | [optional] diff --git a/samples/client/petstore/kotlin-retrofit2/docs/PetApi.md b/samples/client/petstore/kotlin-retrofit2/docs/PetApi.md index a67cc80830b1..cd0240ec9897 100644 --- a/samples/client/petstore/kotlin-retrofit2/docs/PetApi.md +++ b/samples/client/petstore/kotlin-retrofit2/docs/PetApi.md @@ -102,20 +102,20 @@ Multiple status values can be provided with comma separated strings val apiClient = ApiClient() val webService = apiClient.createWebservice(PetApi::class.java) -val status : kotlin.Array = // kotlin.Array | Status values that need to be considered for filter +val status : kotlin.collections.List = // kotlin.collections.List | Status values that need to be considered for filter -val result : kotlin.Array = webService.findPetsByStatus(status) +val result : kotlin.collections.List = webService.findPetsByStatus(status) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] + **status** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization @@ -140,20 +140,20 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 val apiClient = ApiClient() val webService = apiClient.createWebservice(PetApi::class.java) -val tags : kotlin.Array = // kotlin.Array | Tags to filter by +val tags : kotlin.collections.List = // kotlin.collections.List | Tags to filter by -val result : kotlin.Array = webService.findPetsByTags(tags) +val result : kotlin.collections.List = webService.findPetsByTags(tags) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tags** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Tags to filter by | + **tags** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Tags to filter by | ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization diff --git a/samples/client/petstore/kotlin-retrofit2/docs/UserApi.md b/samples/client/petstore/kotlin-retrofit2/docs/UserApi.md index 33a4a3feba1e..6d27b5096f64 100644 --- a/samples/client/petstore/kotlin-retrofit2/docs/UserApi.md +++ b/samples/client/petstore/kotlin-retrofit2/docs/UserApi.md @@ -64,7 +64,7 @@ Creates list of users with given input array val apiClient = ApiClient() val webService = apiClient.createWebservice(UserApi::class.java) -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object webService.createUsersWithArrayInput(body) ``` @@ -73,7 +73,7 @@ webService.createUsersWithArrayInput(body) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type @@ -100,7 +100,7 @@ Creates list of users with given input array val apiClient = ApiClient() val webService = apiClient.createWebservice(UserApi::class.java) -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object webService.createUsersWithListInput(body) ``` @@ -109,7 +109,7 @@ webService.createUsersWithListInput(body) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type diff --git a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index daa9d26c965d..f3f9c057d241 100644 --- a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -42,10 +42,10 @@ interface PetApi { * - 400: Invalid status value * * @param status Status values that need to be considered for filter - * @return [Call]<[kotlin.Array]> + * @return [Call]<[kotlin.collections.List]> */ @GET("pet/findByStatus") - fun findPetsByStatus(@Query("status") status: CSVParams): Call> + fun findPetsByStatus(@Query("status") status: CSVParams): Call> /** * Finds Pets by tags @@ -55,11 +55,11 @@ interface PetApi { * - 400: Invalid tag value * * @param tags Tags to filter by - * @return [Call]<[kotlin.Array]> + * @return [Call]<[kotlin.collections.List]> */ @Deprecated("This api was deprecated") @GET("pet/findByTags") - fun findPetsByTags(@Query("tags") tags: CSVParams): Call> + fun findPetsByTags(@Query("tags") tags: CSVParams): Call> /** * Find pet by ID diff --git a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index fe9c793fdf0b..33f031ec7142 100644 --- a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -30,7 +30,7 @@ interface UserApi { * @return [Call]<[Unit]> */ @POST("user/createWithArray") - fun createUsersWithArrayInput(@Body body: kotlin.Array): Call + fun createUsersWithArrayInput(@Body body: kotlin.collections.List): Call /** * Creates list of users with given input array @@ -42,7 +42,7 @@ interface UserApi { * @return [Call]<[Unit]> */ @POST("user/createWithList") - fun createUsersWithListInput(@Body body: kotlin.Array): Call + fun createUsersWithListInput(@Body body: kotlin.collections.List): Call /** * Delete user diff --git a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt index ada15fee7a1b..fafca8738f66 100644 --- a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt +++ b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json + /** * Describes the result of uploading an image resource * @param code diff --git a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Category.kt index 426a0e515928..a4c17c3b49dd 100644 --- a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json + /** * A category for a pet * @param id diff --git a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Order.kt index 3cfa5ca96263..a66c335904e7 100644 --- a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json + /** * An order for a pets from the pet store * @param id diff --git a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Pet.kt index a94bb811c3b4..a3df06cb6eb3 100644 --- a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -15,6 +15,7 @@ import org.openapitools.client.models.Category import org.openapitools.client.models.Tag import com.squareup.moshi.Json + /** * A pet for sale in the pet store * @param name @@ -29,13 +30,13 @@ data class Pet ( @Json(name = "name") val name: kotlin.String, @Json(name = "photoUrls") - val photoUrls: kotlin.Array, + val photoUrls: kotlin.collections.List, @Json(name = "id") val id: kotlin.Long? = null, @Json(name = "category") val category: Category? = null, @Json(name = "tags") - val tags: kotlin.Array? = null, + val tags: kotlin.collections.List? = null, /* pet status in the store */ @Json(name = "status") val status: Pet.Status? = null diff --git a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Tag.kt index f9ef87e13fbf..6e619023a5c9 100644 --- a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json + /** * A tag for a pet * @param id diff --git a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/User.kt index dfd63806da94..af1e270325de 100644 --- a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/User.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json + /** * A User who is purchasing from the pet store * @param id diff --git a/samples/client/petstore/kotlin-string/docs/Pet.md b/samples/client/petstore/kotlin-string/docs/Pet.md index ec7756007379..73963abeb042 100644 --- a/samples/client/petstore/kotlin-string/docs/Pet.md +++ b/samples/client/petstore/kotlin-string/docs/Pet.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **id** | **kotlin.Long** | | [optional] **category** | [**Category**](Category.md) | | [optional] **name** | **kotlin.String** | | -**photoUrls** | **kotlin.Array<kotlin.String>** | | -**tags** | [**kotlin.Array<Tag>**](Tag.md) | | [optional] +**photoUrls** | **kotlin.collections.List<kotlin.String>** | | +**tags** | [**kotlin.collections.List<Tag>**](Tag.md) | | [optional] **status** | [**inline**](#StatusEnum) | pet status in the store | [optional] diff --git a/samples/client/petstore/kotlin-string/docs/PetApi.md b/samples/client/petstore/kotlin-string/docs/PetApi.md index d4cc830afe07..a30ce4af5589 100644 --- a/samples/client/petstore/kotlin-string/docs/PetApi.md +++ b/samples/client/petstore/kotlin-string/docs/PetApi.md @@ -110,7 +110,7 @@ Configure petstore_auth: # **findPetsByStatus** -> kotlin.Array<Pet> findPetsByStatus(status) +> kotlin.collections.List<Pet> findPetsByStatus(status) Finds Pets by status @@ -123,9 +123,9 @@ Multiple status values can be provided with comma separated strings //import org.openapitools.client.models.* val apiInstance = PetApi() -val status : kotlin.Array = // kotlin.Array | Status values that need to be considered for filter +val status : kotlin.collections.List = // kotlin.collections.List | Status values that need to be considered for filter try { - val result : kotlin.Array = apiInstance.findPetsByStatus(status) + val result : kotlin.collections.List = apiInstance.findPetsByStatus(status) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByStatus") @@ -140,11 +140,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] + **status** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization @@ -159,7 +159,7 @@ Configure petstore_auth: # **findPetsByTags** -> kotlin.Array<Pet> findPetsByTags(tags) +> kotlin.collections.List<Pet> findPetsByTags(tags) Finds Pets by tags @@ -172,9 +172,9 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 //import org.openapitools.client.models.* val apiInstance = PetApi() -val tags : kotlin.Array = // kotlin.Array | Tags to filter by +val tags : kotlin.collections.List = // kotlin.collections.List | Tags to filter by try { - val result : kotlin.Array = apiInstance.findPetsByTags(tags) + val result : kotlin.collections.List = apiInstance.findPetsByTags(tags) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByTags") @@ -189,11 +189,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tags** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Tags to filter by | + **tags** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Tags to filter by | ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization diff --git a/samples/client/petstore/kotlin-string/docs/UserApi.md b/samples/client/petstore/kotlin-string/docs/UserApi.md index 0f55f06bc629..fd98ce696add 100644 --- a/samples/client/petstore/kotlin-string/docs/UserApi.md +++ b/samples/client/petstore/kotlin-string/docs/UserApi.md @@ -73,7 +73,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithArrayInput(body) } catch (e: ClientException) { @@ -89,7 +89,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type @@ -117,7 +117,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithListInput(body) } catch (e: ClientException) { @@ -133,7 +133,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type diff --git a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index 08155a50b8e3..c95dd04f915e 100644 --- a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -119,14 +119,14 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * Finds Pets by status * Multiple status values can be provided with comma separated strings * @param status Status values that need to be considered for filter - * @return kotlin.Array + * @return kotlin.collections.List * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response * @throws ServerException If the API returns a server error response */ @Suppress("UNCHECKED_CAST") @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun findPetsByStatus(status: kotlin.Array) : kotlin.Array { + fun findPetsByStatus(status: kotlin.collections.List) : kotlin.collections.List { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -139,13 +139,13 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { query = localVariableQuery, headers = localVariableHeaders ) - val localVarResponse = request>( + val localVarResponse = request>( localVariableConfig, localVariableBody ) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.Array + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { @@ -163,7 +163,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * Finds Pets by tags * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. * @param tags Tags to filter by - * @return kotlin.Array + * @return kotlin.collections.List * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response * @throws ServerException If the API returns a server error response @@ -171,7 +171,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { @Suppress("UNCHECKED_CAST") @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) @Deprecated(message = "This operation is deprecated.") - fun findPetsByTags(tags: kotlin.Array) : kotlin.Array { + fun findPetsByTags(tags: kotlin.collections.List) : kotlin.collections.List { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -184,13 +184,13 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { query = localVariableQuery, headers = localVariableHeaders ) - val localVarResponse = request>( + val localVarResponse = request>( localVariableConfig, localVariableBody ) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.Array + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { diff --git a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index 1e6e81fc1e91..258a2540e9e8 100644 --- a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -83,7 +83,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun createUsersWithArrayInput(body: kotlin.Array) : Unit { + fun createUsersWithArrayInput(body: kotlin.collections.List) : Unit { val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() @@ -123,7 +123,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun createUsersWithListInput(body: kotlin.Array) : Unit { + fun createUsersWithListInput(body: kotlin.collections.List) : Unit { val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() diff --git a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt index 3c715519085b..7d40c8efbc2f 100644 --- a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt +++ b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * Describes the result of uploading an image resource * @param code diff --git a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Category.kt index 07955e4ff491..ceb0fbc8fe60 100644 --- a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * A category for a pet * @param id diff --git a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Order.kt index c71bb5bda0d4..ec768d1acefd 100644 --- a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * An order for a pets from the pet store * @param id diff --git a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Pet.kt index 0dd3a58bcaed..66667bf07cd1 100644 --- a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -16,6 +16,7 @@ import org.openapitools.client.models.Tag import com.squareup.moshi.Json import java.io.Serializable + /** * A pet for sale in the pet store * @param id @@ -34,9 +35,9 @@ data class Pet ( @Json(name = "name") val name: kotlin.String, @Json(name = "photoUrls") - val photoUrls: kotlin.Array, + val photoUrls: kotlin.collections.List, @Json(name = "tags") - val tags: kotlin.Array? = null, + val tags: kotlin.collections.List? = null, /* pet status in the store */ @Json(name = "status") val status: Pet.Status? = null diff --git a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Tag.kt index fa228fbe1f49..944b1cd0a141 100644 --- a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * A tag for a pet * @param id diff --git a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/User.kt index d02cbd91abd9..9697f07d5bf8 100644 --- a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/User.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * A User who is purchasing from the pet store * @param id diff --git a/samples/client/petstore/kotlin-string/src/test/kotlin/org/openapitools/client/PetApiTest.kt b/samples/client/petstore/kotlin-string/src/test/kotlin/org/openapitools/client/PetApiTest.kt index e410c780b27d..5ae1468ad074 100644 --- a/samples/client/petstore/kotlin-string/src/test/kotlin/org/openapitools/client/PetApiTest.kt +++ b/samples/client/petstore/kotlin-string/src/test/kotlin/org/openapitools/client/PetApiTest.kt @@ -22,9 +22,9 @@ class PetApiTest : ShouldSpec() { val pet = Pet( id = petId, name = "kotlin client test", - photoUrls = arrayOf("http://test_kotlin_unit_test.com"), + photoUrls = listOf("http://test_kotlin_unit_test.com"), category = Category(petId, "test kotlin category"), - tags = arrayOf(Tag(petId, "test kotlin tag")) + tags = listOf(Tag(petId, "test kotlin tag")) ) api.addPet(pet) @@ -44,7 +44,7 @@ class PetApiTest : ShouldSpec() { } should("find pet by status") { - val result = api.findPetsByStatus(arrayOf("available")) + val result = api.findPetsByStatus(listOf("available")) result.size.shouldBeGreaterThan(0) @@ -52,7 +52,7 @@ class PetApiTest : ShouldSpec() { onePet.status.shouldBe(Pet.Status.available) } - val result2 = api.findPetsByStatus(arrayOf("unknown_and_incorrect_status")) + val result2 = api.findPetsByStatus(listOf("unknown_and_incorrect_status")) result2.size.shouldBe(0) @@ -63,7 +63,7 @@ class PetApiTest : ShouldSpec() { id = petId, name = "kotlin client updatePet", status = Pet.Status.pending, - photoUrls = arrayOf("http://test_kotlin_unit_test.com") + photoUrls = listOf("http://test_kotlin_unit_test.com") ) api.updatePet(pet) diff --git a/samples/client/petstore/kotlin-threetenbp/docs/Pet.md b/samples/client/petstore/kotlin-threetenbp/docs/Pet.md index 70c340005d16..c82844b5ee80 100644 --- a/samples/client/petstore/kotlin-threetenbp/docs/Pet.md +++ b/samples/client/petstore/kotlin-threetenbp/docs/Pet.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **kotlin.String** | | -**photoUrls** | **kotlin.Array<kotlin.String>** | | +**photoUrls** | **kotlin.collections.List<kotlin.String>** | | **id** | **kotlin.Long** | | [optional] **category** | [**Category**](Category.md) | | [optional] -**tags** | [**kotlin.Array<Tag>**](Tag.md) | | [optional] +**tags** | [**kotlin.collections.List<Tag>**](Tag.md) | | [optional] **status** | [**inline**](#StatusEnum) | pet status in the store | [optional] diff --git a/samples/client/petstore/kotlin-threetenbp/docs/PetApi.md b/samples/client/petstore/kotlin-threetenbp/docs/PetApi.md index ea93e1745279..27289c31c243 100644 --- a/samples/client/petstore/kotlin-threetenbp/docs/PetApi.md +++ b/samples/client/petstore/kotlin-threetenbp/docs/PetApi.md @@ -110,7 +110,7 @@ Configure petstore_auth: # **findPetsByStatus** -> kotlin.Array<Pet> findPetsByStatus(status) +> kotlin.collections.List<Pet> findPetsByStatus(status) Finds Pets by status @@ -123,9 +123,9 @@ Multiple status values can be provided with comma separated strings //import org.openapitools.client.models.* val apiInstance = PetApi() -val status : kotlin.Array = // kotlin.Array | Status values that need to be considered for filter +val status : kotlin.collections.List = // kotlin.collections.List | Status values that need to be considered for filter try { - val result : kotlin.Array = apiInstance.findPetsByStatus(status) + val result : kotlin.collections.List = apiInstance.findPetsByStatus(status) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByStatus") @@ -140,11 +140,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] + **status** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization @@ -159,7 +159,7 @@ Configure petstore_auth: # **findPetsByTags** -> kotlin.Array<Pet> findPetsByTags(tags) +> kotlin.collections.List<Pet> findPetsByTags(tags) Finds Pets by tags @@ -172,9 +172,9 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 //import org.openapitools.client.models.* val apiInstance = PetApi() -val tags : kotlin.Array = // kotlin.Array | Tags to filter by +val tags : kotlin.collections.List = // kotlin.collections.List | Tags to filter by try { - val result : kotlin.Array = apiInstance.findPetsByTags(tags) + val result : kotlin.collections.List = apiInstance.findPetsByTags(tags) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByTags") @@ -189,11 +189,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tags** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Tags to filter by | + **tags** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Tags to filter by | ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization diff --git a/samples/client/petstore/kotlin-threetenbp/docs/UserApi.md b/samples/client/petstore/kotlin-threetenbp/docs/UserApi.md index 0f55f06bc629..fd98ce696add 100644 --- a/samples/client/petstore/kotlin-threetenbp/docs/UserApi.md +++ b/samples/client/petstore/kotlin-threetenbp/docs/UserApi.md @@ -73,7 +73,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithArrayInput(body) } catch (e: ClientException) { @@ -89,7 +89,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type @@ -117,7 +117,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithListInput(body) } catch (e: ClientException) { @@ -133,7 +133,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type diff --git a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index 1c78bae10dd4..60f72b51af95 100644 --- a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -119,14 +119,14 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * Finds Pets by status * Multiple status values can be provided with comma separated strings * @param status Status values that need to be considered for filter - * @return kotlin.Array + * @return kotlin.collections.List * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response * @throws ServerException If the API returns a server error response */ @Suppress("UNCHECKED_CAST") @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun findPetsByStatus(status: kotlin.Array) : kotlin.Array { + fun findPetsByStatus(status: kotlin.collections.List) : kotlin.collections.List { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -139,13 +139,13 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { query = localVariableQuery, headers = localVariableHeaders ) - val localVarResponse = request>( + val localVarResponse = request>( localVariableConfig, localVariableBody ) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.Array + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { @@ -163,7 +163,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * Finds Pets by tags * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. * @param tags Tags to filter by - * @return kotlin.Array + * @return kotlin.collections.List * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response * @throws ServerException If the API returns a server error response @@ -171,7 +171,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { @Suppress("UNCHECKED_CAST") @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) @Deprecated(message = "This operation is deprecated.") - fun findPetsByTags(tags: kotlin.Array) : kotlin.Array { + fun findPetsByTags(tags: kotlin.collections.List) : kotlin.collections.List { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -184,13 +184,13 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { query = localVariableQuery, headers = localVariableHeaders ) - val localVarResponse = request>( + val localVarResponse = request>( localVariableConfig, localVariableBody ) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.Array + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { diff --git a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index 1e6e81fc1e91..258a2540e9e8 100644 --- a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -83,7 +83,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun createUsersWithArrayInput(body: kotlin.Array) : Unit { + fun createUsersWithArrayInput(body: kotlin.collections.List) : Unit { val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() @@ -123,7 +123,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun createUsersWithListInput(body: kotlin.Array) : Unit { + fun createUsersWithListInput(body: kotlin.collections.List) : Unit { val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() diff --git a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt index ada15fee7a1b..fafca8738f66 100644 --- a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt +++ b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json + /** * Describes the result of uploading an image resource * @param code diff --git a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Category.kt index 426a0e515928..a4c17c3b49dd 100644 --- a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json + /** * A category for a pet * @param id diff --git a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Order.kt index 8f947e96651f..300f94d8545f 100644 --- a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json + /** * An order for a pets from the pet store * @param id diff --git a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Pet.kt index a94bb811c3b4..a3df06cb6eb3 100644 --- a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -15,6 +15,7 @@ import org.openapitools.client.models.Category import org.openapitools.client.models.Tag import com.squareup.moshi.Json + /** * A pet for sale in the pet store * @param name @@ -29,13 +30,13 @@ data class Pet ( @Json(name = "name") val name: kotlin.String, @Json(name = "photoUrls") - val photoUrls: kotlin.Array, + val photoUrls: kotlin.collections.List, @Json(name = "id") val id: kotlin.Long? = null, @Json(name = "category") val category: Category? = null, @Json(name = "tags") - val tags: kotlin.Array? = null, + val tags: kotlin.collections.List? = null, /* pet status in the store */ @Json(name = "status") val status: Pet.Status? = null diff --git a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Tag.kt index f9ef87e13fbf..6e619023a5c9 100644 --- a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json + /** * A tag for a pet * @param id diff --git a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/User.kt index dfd63806da94..af1e270325de 100644 --- a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/User.kt @@ -13,6 +13,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json + /** * A User who is purchasing from the pet store * @param id diff --git a/samples/client/petstore/kotlin-threetenbp/src/test/kotlin/org/openapitools/client/PetApiTest.kt b/samples/client/petstore/kotlin-threetenbp/src/test/kotlin/org/openapitools/client/PetApiTest.kt index d1c20493bccc..5da4f9082a8d 100644 --- a/samples/client/petstore/kotlin-threetenbp/src/test/kotlin/org/openapitools/client/PetApiTest.kt +++ b/samples/client/petstore/kotlin-threetenbp/src/test/kotlin/org/openapitools/client/PetApiTest.kt @@ -22,9 +22,9 @@ class PetApiTest : ShouldSpec() { val pet = Pet( id = petId, name = "kotlin client test", - photoUrls = arrayOf("http://test_kotlin_unit_test.com"), + photoUrls = listOf("http://test_kotlin_unit_test.com"), category = Category(petId, "test kotlin category"), - tags = arrayOf(Tag(petId, "test kotlin tag")) + tags = listOf(Tag(petId, "test kotlin tag")) ) api.addPet(pet) @@ -44,7 +44,7 @@ class PetApiTest : ShouldSpec() { } should("find pet by status") { - val result = api.findPetsByStatus(arrayOf("available")) + val result = api.findPetsByStatus(listOf("available")) result.size.shouldBeGreaterThan(0) @@ -52,7 +52,7 @@ class PetApiTest : ShouldSpec() { onePet.status.shouldBe(Pet.Status.available) } - val result2 = api.findPetsByStatus(arrayOf("unknown_and_incorrect_status")) + val result2 = api.findPetsByStatus(listOf("unknown_and_incorrect_status")) result2.size.shouldBe(0) @@ -63,7 +63,7 @@ class PetApiTest : ShouldSpec() { id = petId, name = "kotlin client updatePet", status = Pet.Status.pending, - photoUrls = arrayOf("http://test_kotlin_unit_test.com") + photoUrls = listOf("http://test_kotlin_unit_test.com") ) api.updatePet(pet) diff --git a/samples/client/petstore/kotlin/docs/Pet.md b/samples/client/petstore/kotlin/docs/Pet.md index 70c340005d16..c82844b5ee80 100644 --- a/samples/client/petstore/kotlin/docs/Pet.md +++ b/samples/client/petstore/kotlin/docs/Pet.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **kotlin.String** | | -**photoUrls** | **kotlin.Array<kotlin.String>** | | +**photoUrls** | **kotlin.collections.List<kotlin.String>** | | **id** | **kotlin.Long** | | [optional] **category** | [**Category**](Category.md) | | [optional] -**tags** | [**kotlin.Array<Tag>**](Tag.md) | | [optional] +**tags** | [**kotlin.collections.List<Tag>**](Tag.md) | | [optional] **status** | [**inline**](#StatusEnum) | pet status in the store | [optional] diff --git a/samples/client/petstore/kotlin/docs/PetApi.md b/samples/client/petstore/kotlin/docs/PetApi.md index ea93e1745279..27289c31c243 100644 --- a/samples/client/petstore/kotlin/docs/PetApi.md +++ b/samples/client/petstore/kotlin/docs/PetApi.md @@ -110,7 +110,7 @@ Configure petstore_auth: # **findPetsByStatus** -> kotlin.Array<Pet> findPetsByStatus(status) +> kotlin.collections.List<Pet> findPetsByStatus(status) Finds Pets by status @@ -123,9 +123,9 @@ Multiple status values can be provided with comma separated strings //import org.openapitools.client.models.* val apiInstance = PetApi() -val status : kotlin.Array = // kotlin.Array | Status values that need to be considered for filter +val status : kotlin.collections.List = // kotlin.collections.List | Status values that need to be considered for filter try { - val result : kotlin.Array = apiInstance.findPetsByStatus(status) + val result : kotlin.collections.List = apiInstance.findPetsByStatus(status) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByStatus") @@ -140,11 +140,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] + **status** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization @@ -159,7 +159,7 @@ Configure petstore_auth: # **findPetsByTags** -> kotlin.Array<Pet> findPetsByTags(tags) +> kotlin.collections.List<Pet> findPetsByTags(tags) Finds Pets by tags @@ -172,9 +172,9 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 //import org.openapitools.client.models.* val apiInstance = PetApi() -val tags : kotlin.Array = // kotlin.Array | Tags to filter by +val tags : kotlin.collections.List = // kotlin.collections.List | Tags to filter by try { - val result : kotlin.Array = apiInstance.findPetsByTags(tags) + val result : kotlin.collections.List = apiInstance.findPetsByTags(tags) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByTags") @@ -189,11 +189,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tags** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Tags to filter by | + **tags** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Tags to filter by | ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization diff --git a/samples/client/petstore/kotlin/docs/UserApi.md b/samples/client/petstore/kotlin/docs/UserApi.md index 0f55f06bc629..fd98ce696add 100644 --- a/samples/client/petstore/kotlin/docs/UserApi.md +++ b/samples/client/petstore/kotlin/docs/UserApi.md @@ -73,7 +73,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithArrayInput(body) } catch (e: ClientException) { @@ -89,7 +89,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type @@ -117,7 +117,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val body : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithListInput(body) } catch (e: ClientException) { @@ -133,7 +133,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**kotlin.Array<User>**](User.md)| List of user object | + **body** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type diff --git a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index 1c78bae10dd4..60f72b51af95 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -119,14 +119,14 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * Finds Pets by status * Multiple status values can be provided with comma separated strings * @param status Status values that need to be considered for filter - * @return kotlin.Array + * @return kotlin.collections.List * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response * @throws ServerException If the API returns a server error response */ @Suppress("UNCHECKED_CAST") @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun findPetsByStatus(status: kotlin.Array) : kotlin.Array { + fun findPetsByStatus(status: kotlin.collections.List) : kotlin.collections.List { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -139,13 +139,13 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { query = localVariableQuery, headers = localVariableHeaders ) - val localVarResponse = request>( + val localVarResponse = request>( localVariableConfig, localVariableBody ) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.Array + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { @@ -163,7 +163,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * Finds Pets by tags * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. * @param tags Tags to filter by - * @return kotlin.Array + * @return kotlin.collections.List * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response * @throws ServerException If the API returns a server error response @@ -171,7 +171,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { @Suppress("UNCHECKED_CAST") @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) @Deprecated(message = "This operation is deprecated.") - fun findPetsByTags(tags: kotlin.Array) : kotlin.Array { + fun findPetsByTags(tags: kotlin.collections.List) : kotlin.collections.List { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -184,13 +184,13 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { query = localVariableQuery, headers = localVariableHeaders ) - val localVarResponse = request>( + val localVarResponse = request>( localVariableConfig, localVariableBody ) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.Array + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { diff --git a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index 1e6e81fc1e91..258a2540e9e8 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -83,7 +83,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun createUsersWithArrayInput(body: kotlin.Array) : Unit { + fun createUsersWithArrayInput(body: kotlin.collections.List) : Unit { val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() @@ -123,7 +123,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun createUsersWithListInput(body: kotlin.Array) : Unit { + fun createUsersWithListInput(body: kotlin.collections.List) : Unit { val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() diff --git a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt index 3c715519085b..7d40c8efbc2f 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * Describes the result of uploading an image resource * @param code diff --git a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Category.kt index 07955e4ff491..ceb0fbc8fe60 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * A category for a pet * @param id diff --git a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Order.kt index d5048059d44e..ed8f8b13a43b 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * An order for a pets from the pet store * @param id diff --git a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Pet.kt index 0f72fb6bd360..105f485f021d 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -16,6 +16,7 @@ import org.openapitools.client.models.Tag import com.squareup.moshi.Json import java.io.Serializable + /** * A pet for sale in the pet store * @param name @@ -30,13 +31,13 @@ data class Pet ( @Json(name = "name") val name: kotlin.String, @Json(name = "photoUrls") - val photoUrls: kotlin.Array, + val photoUrls: kotlin.collections.List, @Json(name = "id") val id: kotlin.Long? = null, @Json(name = "category") val category: Category? = null, @Json(name = "tags") - val tags: kotlin.Array? = null, + val tags: kotlin.collections.List? = null, /* pet status in the store */ @Json(name = "status") val status: Pet.Status? = null diff --git a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Tag.kt index fa228fbe1f49..944b1cd0a141 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * A tag for a pet * @param id diff --git a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/User.kt index d02cbd91abd9..9697f07d5bf8 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/User.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * A User who is purchasing from the pet store * @param id diff --git a/samples/client/petstore/kotlin/src/test/kotlin/org/openapitools/client/PetApiTest.kt b/samples/client/petstore/kotlin/src/test/kotlin/org/openapitools/client/PetApiTest.kt index d1c20493bccc..5da4f9082a8d 100644 --- a/samples/client/petstore/kotlin/src/test/kotlin/org/openapitools/client/PetApiTest.kt +++ b/samples/client/petstore/kotlin/src/test/kotlin/org/openapitools/client/PetApiTest.kt @@ -22,9 +22,9 @@ class PetApiTest : ShouldSpec() { val pet = Pet( id = petId, name = "kotlin client test", - photoUrls = arrayOf("http://test_kotlin_unit_test.com"), + photoUrls = listOf("http://test_kotlin_unit_test.com"), category = Category(petId, "test kotlin category"), - tags = arrayOf(Tag(petId, "test kotlin tag")) + tags = listOf(Tag(petId, "test kotlin tag")) ) api.addPet(pet) @@ -44,7 +44,7 @@ class PetApiTest : ShouldSpec() { } should("find pet by status") { - val result = api.findPetsByStatus(arrayOf("available")) + val result = api.findPetsByStatus(listOf("available")) result.size.shouldBeGreaterThan(0) @@ -52,7 +52,7 @@ class PetApiTest : ShouldSpec() { onePet.status.shouldBe(Pet.Status.available) } - val result2 = api.findPetsByStatus(arrayOf("unknown_and_incorrect_status")) + val result2 = api.findPetsByStatus(listOf("unknown_and_incorrect_status")) result2.size.shouldBe(0) @@ -63,7 +63,7 @@ class PetApiTest : ShouldSpec() { id = petId, name = "kotlin client updatePet", status = Pet.Status.pending, - photoUrls = arrayOf("http://test_kotlin_unit_test.com") + photoUrls = listOf("http://test_kotlin_unit_test.com") ) api.updatePet(pet) diff --git a/samples/client/petstore/kotlin/src/test/kotlin/org/openapitools/client/StoreApiTest.kt b/samples/client/petstore/kotlin/src/test/kotlin/org/openapitools/client/StoreApiTest.kt index 733df971a8b3..8c57ecf76147 100644 --- a/samples/client/petstore/kotlin/src/test/kotlin/org/openapitools/client/StoreApiTest.kt +++ b/samples/client/petstore/kotlin/src/test/kotlin/org/openapitools/client/StoreApiTest.kt @@ -18,7 +18,7 @@ class StoreApiTest : ShouldSpec() { val pet = Pet( id = petId, name = "kotlin client test", - photoUrls = arrayOf("http://test_kotlin_unit_test.com") + photoUrls = listOf("http://test_kotlin_unit_test.com") ) petApi.addPet(pet) diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/ArrayOfArrayOfNumberOnly.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/ArrayOfArrayOfNumberOnly.md index 23a475664205..bcc306caeb6d 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/ArrayOfArrayOfNumberOnly.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/ArrayOfArrayOfNumberOnly.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arrayArrayNumber** | **kotlin.Array<kotlin.Array<java.math.BigDecimal>>** | | [optional] +**arrayArrayNumber** | **kotlin.collections.List<kotlin.collections.List<java.math.BigDecimal>>** | | [optional] diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/ArrayOfNumberOnly.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/ArrayOfNumberOnly.md index b115a5d54c22..00c57a7885e8 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/ArrayOfNumberOnly.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/ArrayOfNumberOnly.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arrayNumber** | [**kotlin.Array<java.math.BigDecimal>**](java.math.BigDecimal.md) | | [optional] +**arrayNumber** | [**kotlin.collections.List<java.math.BigDecimal>**](java.math.BigDecimal.md) | | [optional] diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/ArrayTest.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/ArrayTest.md index aa0bbbe936c1..45e59c8fe77c 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/ArrayTest.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/ArrayTest.md @@ -4,9 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arrayOfString** | **kotlin.Array<kotlin.String>** | | [optional] -**arrayArrayOfInteger** | **kotlin.Array<kotlin.Array<kotlin.Long>>** | | [optional] -**arrayArrayOfModel** | **kotlin.Array<kotlin.Array<ReadOnlyFirst>>** | | [optional] +**arrayOfString** | **kotlin.collections.List<kotlin.String>** | | [optional] +**arrayArrayOfInteger** | **kotlin.collections.List<kotlin.collections.List<kotlin.Long>>** | | [optional] +**arrayArrayOfModel** | **kotlin.collections.List<kotlin.collections.List<ReadOnlyFirst>>** | | [optional] diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/EnumArrays.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/EnumArrays.md index 719084e5f949..c3c5e235bfed 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/EnumArrays.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/EnumArrays.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **justSymbol** | [**inline**](#JustSymbolEnum) | | [optional] -**arrayEnum** | [**inline**](#kotlin.Array<ArrayEnumEnum>) | | [optional] +**arrayEnum** | [**inline**](#kotlin.collections.List<ArrayEnumEnum>) | | [optional] @@ -15,7 +15,7 @@ Name | Value justSymbol | >=, $ - + ## Enum: array_enum Name | Value ---- | ----- diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/FileSchemaTestClass.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/FileSchemaTestClass.md index 089e61862c2a..e5512f82f6f6 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/FileSchemaTestClass.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/FileSchemaTestClass.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **file** | [**java.io.File**](java.io.File.md) | | [optional] -**files** | [**kotlin.Array<java.io.File>**](java.io.File.md) | | [optional] +**files** | [**kotlin.collections.List<java.io.File>**](java.io.File.md) | | [optional] diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/InlineObject2.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/InlineObject2.md index 0720925918bf..a98ffe031b3d 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/InlineObject2.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/InlineObject2.md @@ -4,11 +4,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**enumFormStringArray** | [**inline**](#kotlin.Array<EnumFormStringArrayEnum>) | Form parameter enum test (string array) | [optional] +**enumFormStringArray** | [**inline**](#kotlin.collections.List<EnumFormStringArrayEnum>) | Form parameter enum test (string array) | [optional] **enumFormString** | [**inline**](#EnumFormStringEnum) | Form parameter enum test (string) | [optional] - + ## Enum: enum_form_string_array Name | Value ---- | ----- diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/NullableClass.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/NullableClass.md index 9ec43d0b87c6..335943c01eae 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/NullableClass.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/NullableClass.md @@ -10,9 +10,9 @@ Name | Type | Description | Notes **stringProp** | **kotlin.String** | | [optional] **dateProp** | [**java.time.LocalDate**](java.time.LocalDate.md) | | [optional] **datetimeProp** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | | [optional] -**arrayNullableProp** | [**kotlin.Array<kotlin.Any>**](kotlin.Any.md) | | [optional] -**arrayAndItemsNullableProp** | [**kotlin.Array<kotlin.Any>**](kotlin.Any.md) | | [optional] -**arrayItemsNullable** | [**kotlin.Array<kotlin.Any>**](kotlin.Any.md) | | [optional] +**arrayNullableProp** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | | [optional] +**arrayAndItemsNullableProp** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | | [optional] +**arrayItemsNullable** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | | [optional] **objectNullableProp** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] **objectAndItemsNullableProp** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] **objectItemsNullable** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/Pet.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/Pet.md index 70c340005d16..c82844b5ee80 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/Pet.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/Pet.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **kotlin.String** | | -**photoUrls** | **kotlin.Array<kotlin.String>** | | +**photoUrls** | **kotlin.collections.List<kotlin.String>** | | **id** | **kotlin.Long** | | [optional] **category** | [**Category**](Category.md) | | [optional] -**tags** | [**kotlin.Array<Tag>**](Tag.md) | | [optional] +**tags** | [**kotlin.collections.List<Tag>**](Tag.md) | | [optional] **status** | [**inline**](#StatusEnum) | pet status in the store | [optional] diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt index 04e474059f25..152cbc0cddf3 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param mapProperty diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Animal.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Animal.kt index 59234b2684f5..ab6e55151fc8 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Animal.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Animal.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param className diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt index 4d49a464621a..60f2617cafb2 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param code diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt index 0c88337e9c1e..db44a13b4373 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param arrayArrayNumber @@ -21,7 +22,7 @@ import java.io.Serializable data class ArrayOfArrayOfNumberOnly ( @SerializedName("ArrayArrayNumber") - val arrayArrayNumber: kotlin.Array>? = null + val arrayArrayNumber: kotlin.collections.List>? = null ) : Serializable { companion object { private const val serialVersionUID: Long = 123 diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt index 4da5b8e6d5fb..128acc125416 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param arrayNumber @@ -21,7 +22,7 @@ import java.io.Serializable data class ArrayOfNumberOnly ( @SerializedName("ArrayNumber") - val arrayNumber: kotlin.Array? = null + val arrayNumber: kotlin.collections.List? = null ) : Serializable { companion object { private const val serialVersionUID: Long = 123 diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ArrayTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ArrayTest.kt index 855cd60a3274..afb0414957b9 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ArrayTest.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ArrayTest.kt @@ -15,6 +15,7 @@ import org.openapitools.client.models.ReadOnlyFirst import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param arrayOfString @@ -24,11 +25,11 @@ import java.io.Serializable data class ArrayTest ( @SerializedName("array_of_string") - val arrayOfString: kotlin.Array? = null, + val arrayOfString: kotlin.collections.List? = null, @SerializedName("array_array_of_integer") - val arrayArrayOfInteger: kotlin.Array>? = null, + val arrayArrayOfInteger: kotlin.collections.List>? = null, @SerializedName("array_array_of_model") - val arrayArrayOfModel: kotlin.Array>? = null + val arrayArrayOfModel: kotlin.collections.List>? = null ) : Serializable { companion object { private const val serialVersionUID: Long = 123 diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Capitalization.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Capitalization.kt index 24e13278871b..cf876c94035c 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Capitalization.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Capitalization.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param smallCamel diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Cat.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Cat.kt index 7470f2504322..647155c428fc 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Cat.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Cat.kt @@ -16,6 +16,7 @@ import org.openapitools.client.models.CatAllOf import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param className diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/CatAllOf.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/CatAllOf.kt index 17d5df7c0db1..b3888433c7bb 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/CatAllOf.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/CatAllOf.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param declawed diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Category.kt index 6bfa3b0d01fb..befccbefa9ac 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param name diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ClassModel.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ClassModel.kt index 174d49148f0d..c5222d7169e0 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ClassModel.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ClassModel.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * Model for testing model with \"_class\" property * @param propertyClass diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Client.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Client.kt index 31fa6e51bf7b..3debe1d542f7 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Client.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Client.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param client diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Dog.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Dog.kt index 7965fadd703c..5be6d075450e 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Dog.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Dog.kt @@ -16,6 +16,7 @@ import org.openapitools.client.models.DogAllOf import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param className diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/DogAllOf.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/DogAllOf.kt index d67d72c09671..be81eda59734 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/DogAllOf.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/DogAllOf.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param breed diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/EnumArrays.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/EnumArrays.kt index d4ffb01a388d..2b97721e7f53 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/EnumArrays.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/EnumArrays.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param justSymbol @@ -24,7 +25,7 @@ data class EnumArrays ( @SerializedName("just_symbol") val justSymbol: EnumArrays.JustSymbol? = null, @SerializedName("array_enum") - val arrayEnum: kotlin.Array? = null + val arrayEnum: kotlin.collections.List? = null ) : Serializable { companion object { private const val serialVersionUID: Long = 123 diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/EnumTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/EnumTest.kt index 507fbaa3c059..3aceec7fe933 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/EnumTest.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/EnumTest.kt @@ -18,6 +18,7 @@ import org.openapitools.client.models.OuterEnumIntegerDefaultValue import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param enumStringRequired diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt index 1511af5d49b2..b82eddd47ccf 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param file @@ -24,7 +25,7 @@ data class FileSchemaTestClass ( @SerializedName("file") val file: java.io.File? = null, @SerializedName("files") - val files: kotlin.Array? = null + val files: kotlin.collections.List? = null ) : Serializable { companion object { private const val serialVersionUID: Long = 123 diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Foo.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Foo.kt index 1ca746f908c3..33952e4b66f1 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Foo.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Foo.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param bar diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/FormatTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/FormatTest.kt index 5b9be0b89c01..d69683337761 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/FormatTest.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/FormatTest.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param number diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt index 7608a258ae5f..3d662d38a504 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param bar diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt index 9e5a085a2c01..fe3b639cfc39 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. * @param nullableMessage diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject.kt index d75c0ded4369..24f157d5d750 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param name Updated name of the pet diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject1.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject1.kt index 1f26364b834e..2382fda34b0f 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject1.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject1.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param additionalMetadata Additional data to pass to server diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject2.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject2.kt index 57634dd3f5a2..0c85be510de8 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject2.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject2.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param enumFormStringArray Form parameter enum test (string array) @@ -23,7 +24,7 @@ import java.io.Serializable data class InlineObject2 ( /* Form parameter enum test (string array) */ @SerializedName("enum_form_string_array") - val enumFormStringArray: kotlin.Array? = null, + val enumFormStringArray: kotlin.collections.List? = null, /* Form parameter enum test (string) */ @SerializedName("enum_form_string") val enumFormString: InlineObject2.EnumFormString? = null diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject3.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject3.kt index f70af3efc5a3..37a4dbaeb49d 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject3.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject3.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param number None diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject4.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject4.kt index 5c38c52ba8d1..06b2d303be85 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject4.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject4.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param param field1 diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject5.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject5.kt index 6389765702b9..76a04940bbf6 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject5.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject5.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param requiredFile file to upload diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt index e1d3c615222a..aceb74085fee 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt @@ -15,6 +15,7 @@ import org.openapitools.client.models.Foo import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param string diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/List.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/List.kt index 1aa7715f047f..8de0d080cedc 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/List.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/List.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param `123minusList` diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/MapTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/MapTest.kt index 9c0bef747fbd..351506589b9a 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/MapTest.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/MapTest.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param mapMapOfString diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt index f1dda9dc0efe..39b0152a33f0 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt @@ -15,6 +15,7 @@ import org.openapitools.client.models.Animal import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param uuid diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Model200Response.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Model200Response.kt index 1bdb62d1b23b..1360386ee2bb 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Model200Response.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Model200Response.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * Model for testing model name starting with number * @param name diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Name.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Name.kt index 2e30b6b7cd95..e3113d603d4c 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Name.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Name.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * Model for testing model name same as property name * @param name diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/NullableClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/NullableClass.kt index 534bb572e4f1..81366b145ba2 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/NullableClass.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/NullableClass.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param integerProp @@ -44,11 +45,11 @@ data class NullableClass ( @SerializedName("datetime_prop") val datetimeProp: java.time.OffsetDateTime? = null, @SerializedName("array_nullable_prop") - val arrayNullableProp: kotlin.Array? = null, + val arrayNullableProp: kotlin.collections.List? = null, @SerializedName("array_and_items_nullable_prop") - val arrayAndItemsNullableProp: kotlin.Array? = null, + val arrayAndItemsNullableProp: kotlin.collections.List? = null, @SerializedName("array_items_nullable") - val arrayItemsNullable: kotlin.Array? = null, + val arrayItemsNullable: kotlin.collections.List? = null, @SerializedName("object_nullable_prop") val objectNullableProp: kotlin.collections.Map? = null, @SerializedName("object_and_items_nullable_prop") diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/NumberOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/NumberOnly.kt index c7138f597e10..31f01f97b083 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/NumberOnly.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/NumberOnly.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param justNumber diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Order.kt index 2a58f2be7c0d..048659fa99fa 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param id diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/OuterComposite.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/OuterComposite.kt index 6303e05739bc..dec8db2d9b8a 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/OuterComposite.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/OuterComposite.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param myNumber diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Pet.kt index 5865f9d672cd..0b389b22ba63 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -16,6 +16,7 @@ import org.openapitools.client.models.Tag import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param name @@ -30,13 +31,13 @@ data class Pet ( @SerializedName("name") val name: kotlin.String, @SerializedName("photoUrls") - val photoUrls: kotlin.Array, + val photoUrls: kotlin.collections.List, @SerializedName("id") val id: kotlin.Long? = null, @SerializedName("category") val category: Category? = null, @SerializedName("tags") - val tags: kotlin.Array? = null, + val tags: kotlin.collections.List? = null, /* pet status in the store */ @SerializedName("status") val status: Pet.Status? = null diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt index 81c3bab8745e..ef98374a6955 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param bar diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Return.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Return.kt index 166cb5aa391c..19f61d416732 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Return.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Return.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * Model for testing reserved words * @param `return` diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt index c9585969b251..23cd075e530d 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Tag.kt index e11be325ef39..9e08a3d8ae0e 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param id diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/User.kt index 433872af1e9c..ca2ce7188e52 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/User.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param id diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ArrayOfArrayOfNumberOnly.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ArrayOfArrayOfNumberOnly.md index 23a475664205..bcc306caeb6d 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ArrayOfArrayOfNumberOnly.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ArrayOfArrayOfNumberOnly.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arrayArrayNumber** | **kotlin.Array<kotlin.Array<java.math.BigDecimal>>** | | [optional] +**arrayArrayNumber** | **kotlin.collections.List<kotlin.collections.List<java.math.BigDecimal>>** | | [optional] diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ArrayOfNumberOnly.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ArrayOfNumberOnly.md index b115a5d54c22..00c57a7885e8 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ArrayOfNumberOnly.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ArrayOfNumberOnly.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arrayNumber** | [**kotlin.Array<java.math.BigDecimal>**](java.math.BigDecimal.md) | | [optional] +**arrayNumber** | [**kotlin.collections.List<java.math.BigDecimal>**](java.math.BigDecimal.md) | | [optional] diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ArrayTest.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ArrayTest.md index aa0bbbe936c1..45e59c8fe77c 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ArrayTest.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/ArrayTest.md @@ -4,9 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arrayOfString** | **kotlin.Array<kotlin.String>** | | [optional] -**arrayArrayOfInteger** | **kotlin.Array<kotlin.Array<kotlin.Long>>** | | [optional] -**arrayArrayOfModel** | **kotlin.Array<kotlin.Array<ReadOnlyFirst>>** | | [optional] +**arrayOfString** | **kotlin.collections.List<kotlin.String>** | | [optional] +**arrayArrayOfInteger** | **kotlin.collections.List<kotlin.collections.List<kotlin.Long>>** | | [optional] +**arrayArrayOfModel** | **kotlin.collections.List<kotlin.collections.List<ReadOnlyFirst>>** | | [optional] diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/EnumArrays.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/EnumArrays.md index 719084e5f949..c3c5e235bfed 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/EnumArrays.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/EnumArrays.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **justSymbol** | [**inline**](#JustSymbolEnum) | | [optional] -**arrayEnum** | [**inline**](#kotlin.Array<ArrayEnumEnum>) | | [optional] +**arrayEnum** | [**inline**](#kotlin.collections.List<ArrayEnumEnum>) | | [optional] @@ -15,7 +15,7 @@ Name | Value justSymbol | >=, $ - + ## Enum: array_enum Name | Value ---- | ----- diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/FileSchemaTestClass.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/FileSchemaTestClass.md index 089e61862c2a..e5512f82f6f6 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/FileSchemaTestClass.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/FileSchemaTestClass.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **file** | [**java.io.File**](java.io.File.md) | | [optional] -**files** | [**kotlin.Array<java.io.File>**](java.io.File.md) | | [optional] +**files** | [**kotlin.collections.List<java.io.File>**](java.io.File.md) | | [optional] diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/InlineObject2.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/InlineObject2.md index 0720925918bf..a98ffe031b3d 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/InlineObject2.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/InlineObject2.md @@ -4,11 +4,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**enumFormStringArray** | [**inline**](#kotlin.Array<EnumFormStringArrayEnum>) | Form parameter enum test (string array) | [optional] +**enumFormStringArray** | [**inline**](#kotlin.collections.List<EnumFormStringArrayEnum>) | Form parameter enum test (string array) | [optional] **enumFormString** | [**inline**](#EnumFormStringEnum) | Form parameter enum test (string) | [optional] - + ## Enum: enum_form_string_array Name | Value ---- | ----- diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/NullableClass.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/NullableClass.md index 9ec43d0b87c6..335943c01eae 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/NullableClass.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/NullableClass.md @@ -10,9 +10,9 @@ Name | Type | Description | Notes **stringProp** | **kotlin.String** | | [optional] **dateProp** | [**java.time.LocalDate**](java.time.LocalDate.md) | | [optional] **datetimeProp** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | | [optional] -**arrayNullableProp** | [**kotlin.Array<kotlin.Any>**](kotlin.Any.md) | | [optional] -**arrayAndItemsNullableProp** | [**kotlin.Array<kotlin.Any>**](kotlin.Any.md) | | [optional] -**arrayItemsNullable** | [**kotlin.Array<kotlin.Any>**](kotlin.Any.md) | | [optional] +**arrayNullableProp** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | | [optional] +**arrayAndItemsNullableProp** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | | [optional] +**arrayItemsNullable** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | | [optional] **objectNullableProp** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] **objectAndItemsNullableProp** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] **objectItemsNullable** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Pet.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Pet.md index 70c340005d16..c82844b5ee80 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Pet.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/Pet.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **kotlin.String** | | -**photoUrls** | **kotlin.Array<kotlin.String>** | | +**photoUrls** | **kotlin.collections.List<kotlin.String>** | | **id** | **kotlin.Long** | | [optional] **category** | [**Category**](Category.md) | | [optional] -**tags** | [**kotlin.Array<Tag>**](Tag.md) | | [optional] +**tags** | [**kotlin.collections.List<Tag>**](Tag.md) | | [optional] **status** | [**inline**](#StatusEnum) | pet status in the store | [optional] diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt index 04e474059f25..152cbc0cddf3 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param mapProperty diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Animal.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Animal.kt index 59234b2684f5..ab6e55151fc8 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Animal.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Animal.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param className diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt index 4d49a464621a..60f2617cafb2 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param code diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt index 0c88337e9c1e..db44a13b4373 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param arrayArrayNumber @@ -21,7 +22,7 @@ import java.io.Serializable data class ArrayOfArrayOfNumberOnly ( @SerializedName("ArrayArrayNumber") - val arrayArrayNumber: kotlin.Array>? = null + val arrayArrayNumber: kotlin.collections.List>? = null ) : Serializable { companion object { private const val serialVersionUID: Long = 123 diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt index 4da5b8e6d5fb..128acc125416 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param arrayNumber @@ -21,7 +22,7 @@ import java.io.Serializable data class ArrayOfNumberOnly ( @SerializedName("ArrayNumber") - val arrayNumber: kotlin.Array? = null + val arrayNumber: kotlin.collections.List? = null ) : Serializable { companion object { private const val serialVersionUID: Long = 123 diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ArrayTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ArrayTest.kt index 855cd60a3274..afb0414957b9 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ArrayTest.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ArrayTest.kt @@ -15,6 +15,7 @@ import org.openapitools.client.models.ReadOnlyFirst import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param arrayOfString @@ -24,11 +25,11 @@ import java.io.Serializable data class ArrayTest ( @SerializedName("array_of_string") - val arrayOfString: kotlin.Array? = null, + val arrayOfString: kotlin.collections.List? = null, @SerializedName("array_array_of_integer") - val arrayArrayOfInteger: kotlin.Array>? = null, + val arrayArrayOfInteger: kotlin.collections.List>? = null, @SerializedName("array_array_of_model") - val arrayArrayOfModel: kotlin.Array>? = null + val arrayArrayOfModel: kotlin.collections.List>? = null ) : Serializable { companion object { private const val serialVersionUID: Long = 123 diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Capitalization.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Capitalization.kt index 24e13278871b..cf876c94035c 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Capitalization.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Capitalization.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param smallCamel diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Cat.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Cat.kt index 7470f2504322..647155c428fc 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Cat.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Cat.kt @@ -16,6 +16,7 @@ import org.openapitools.client.models.CatAllOf import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param className diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/CatAllOf.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/CatAllOf.kt index 17d5df7c0db1..b3888433c7bb 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/CatAllOf.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/CatAllOf.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param declawed diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Category.kt index 6bfa3b0d01fb..befccbefa9ac 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param name diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ClassModel.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ClassModel.kt index 174d49148f0d..c5222d7169e0 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ClassModel.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ClassModel.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * Model for testing model with \"_class\" property * @param propertyClass diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Client.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Client.kt index 31fa6e51bf7b..3debe1d542f7 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Client.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Client.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param client diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Dog.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Dog.kt index 7965fadd703c..5be6d075450e 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Dog.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Dog.kt @@ -16,6 +16,7 @@ import org.openapitools.client.models.DogAllOf import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param className diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/DogAllOf.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/DogAllOf.kt index d67d72c09671..be81eda59734 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/DogAllOf.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/DogAllOf.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param breed diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/EnumArrays.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/EnumArrays.kt index d4ffb01a388d..2b97721e7f53 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/EnumArrays.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/EnumArrays.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param justSymbol @@ -24,7 +25,7 @@ data class EnumArrays ( @SerializedName("just_symbol") val justSymbol: EnumArrays.JustSymbol? = null, @SerializedName("array_enum") - val arrayEnum: kotlin.Array? = null + val arrayEnum: kotlin.collections.List? = null ) : Serializable { companion object { private const val serialVersionUID: Long = 123 diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/EnumTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/EnumTest.kt index 507fbaa3c059..3aceec7fe933 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/EnumTest.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/EnumTest.kt @@ -18,6 +18,7 @@ import org.openapitools.client.models.OuterEnumIntegerDefaultValue import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param enumStringRequired diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt index 1511af5d49b2..b82eddd47ccf 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param file @@ -24,7 +25,7 @@ data class FileSchemaTestClass ( @SerializedName("file") val file: java.io.File? = null, @SerializedName("files") - val files: kotlin.Array? = null + val files: kotlin.collections.List? = null ) : Serializable { companion object { private const val serialVersionUID: Long = 123 diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Foo.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Foo.kt index 1ca746f908c3..33952e4b66f1 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Foo.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Foo.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param bar diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/FormatTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/FormatTest.kt index 5b9be0b89c01..d69683337761 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/FormatTest.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/FormatTest.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param number diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt index 7608a258ae5f..3d662d38a504 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param bar diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt index 9e5a085a2c01..fe3b639cfc39 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. * @param nullableMessage diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject.kt index d75c0ded4369..24f157d5d750 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param name Updated name of the pet diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject1.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject1.kt index 1f26364b834e..2382fda34b0f 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject1.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject1.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param additionalMetadata Additional data to pass to server diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject2.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject2.kt index 57634dd3f5a2..0c85be510de8 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject2.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject2.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param enumFormStringArray Form parameter enum test (string array) @@ -23,7 +24,7 @@ import java.io.Serializable data class InlineObject2 ( /* Form parameter enum test (string array) */ @SerializedName("enum_form_string_array") - val enumFormStringArray: kotlin.Array? = null, + val enumFormStringArray: kotlin.collections.List? = null, /* Form parameter enum test (string) */ @SerializedName("enum_form_string") val enumFormString: InlineObject2.EnumFormString? = null diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject3.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject3.kt index f70af3efc5a3..37a4dbaeb49d 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject3.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject3.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param number None diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject4.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject4.kt index 5c38c52ba8d1..06b2d303be85 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject4.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject4.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param param field1 diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject5.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject5.kt index 6389765702b9..76a04940bbf6 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject5.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject5.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param requiredFile file to upload diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt index e1d3c615222a..aceb74085fee 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt @@ -15,6 +15,7 @@ import org.openapitools.client.models.Foo import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param string diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/List.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/List.kt index 1aa7715f047f..8de0d080cedc 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/List.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/List.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param `123minusList` diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/MapTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/MapTest.kt index 9c0bef747fbd..351506589b9a 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/MapTest.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/MapTest.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param mapMapOfString diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt index f1dda9dc0efe..39b0152a33f0 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt @@ -15,6 +15,7 @@ import org.openapitools.client.models.Animal import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param uuid diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Model200Response.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Model200Response.kt index 1bdb62d1b23b..1360386ee2bb 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Model200Response.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Model200Response.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * Model for testing model name starting with number * @param name diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Name.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Name.kt index 2e30b6b7cd95..e3113d603d4c 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Name.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Name.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * Model for testing model name same as property name * @param name diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/NullableClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/NullableClass.kt index 534bb572e4f1..81366b145ba2 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/NullableClass.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/NullableClass.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param integerProp @@ -44,11 +45,11 @@ data class NullableClass ( @SerializedName("datetime_prop") val datetimeProp: java.time.OffsetDateTime? = null, @SerializedName("array_nullable_prop") - val arrayNullableProp: kotlin.Array? = null, + val arrayNullableProp: kotlin.collections.List? = null, @SerializedName("array_and_items_nullable_prop") - val arrayAndItemsNullableProp: kotlin.Array? = null, + val arrayAndItemsNullableProp: kotlin.collections.List? = null, @SerializedName("array_items_nullable") - val arrayItemsNullable: kotlin.Array? = null, + val arrayItemsNullable: kotlin.collections.List? = null, @SerializedName("object_nullable_prop") val objectNullableProp: kotlin.collections.Map? = null, @SerializedName("object_and_items_nullable_prop") diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/NumberOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/NumberOnly.kt index c7138f597e10..31f01f97b083 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/NumberOnly.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/NumberOnly.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param justNumber diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Order.kt index 2a58f2be7c0d..048659fa99fa 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param id diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterComposite.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterComposite.kt index 6303e05739bc..dec8db2d9b8a 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterComposite.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterComposite.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param myNumber diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Pet.kt index 5865f9d672cd..0b389b22ba63 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -16,6 +16,7 @@ import org.openapitools.client.models.Tag import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param name @@ -30,13 +31,13 @@ data class Pet ( @SerializedName("name") val name: kotlin.String, @SerializedName("photoUrls") - val photoUrls: kotlin.Array, + val photoUrls: kotlin.collections.List, @SerializedName("id") val id: kotlin.Long? = null, @SerializedName("category") val category: Category? = null, @SerializedName("tags") - val tags: kotlin.Array? = null, + val tags: kotlin.collections.List? = null, /* pet status in the store */ @SerializedName("status") val status: Pet.Status? = null diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt index 81c3bab8745e..ef98374a6955 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param bar diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Return.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Return.kt index 166cb5aa391c..19f61d416732 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Return.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Return.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * Model for testing reserved words * @param `return` diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt index c9585969b251..23cd075e530d 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Tag.kt index e11be325ef39..9e08a3d8ae0e 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param id diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/User.kt index 433872af1e9c..ca2ce7188e52 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/User.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param id diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ArrayOfArrayOfNumberOnly.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ArrayOfArrayOfNumberOnly.md index 23a475664205..bcc306caeb6d 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ArrayOfArrayOfNumberOnly.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ArrayOfArrayOfNumberOnly.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arrayArrayNumber** | **kotlin.Array<kotlin.Array<java.math.BigDecimal>>** | | [optional] +**arrayArrayNumber** | **kotlin.collections.List<kotlin.collections.List<java.math.BigDecimal>>** | | [optional] diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ArrayOfNumberOnly.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ArrayOfNumberOnly.md index b115a5d54c22..00c57a7885e8 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ArrayOfNumberOnly.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ArrayOfNumberOnly.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arrayNumber** | [**kotlin.Array<java.math.BigDecimal>**](java.math.BigDecimal.md) | | [optional] +**arrayNumber** | [**kotlin.collections.List<java.math.BigDecimal>**](java.math.BigDecimal.md) | | [optional] diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ArrayTest.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ArrayTest.md index aa0bbbe936c1..45e59c8fe77c 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ArrayTest.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/ArrayTest.md @@ -4,9 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arrayOfString** | **kotlin.Array<kotlin.String>** | | [optional] -**arrayArrayOfInteger** | **kotlin.Array<kotlin.Array<kotlin.Long>>** | | [optional] -**arrayArrayOfModel** | **kotlin.Array<kotlin.Array<ReadOnlyFirst>>** | | [optional] +**arrayOfString** | **kotlin.collections.List<kotlin.String>** | | [optional] +**arrayArrayOfInteger** | **kotlin.collections.List<kotlin.collections.List<kotlin.Long>>** | | [optional] +**arrayArrayOfModel** | **kotlin.collections.List<kotlin.collections.List<ReadOnlyFirst>>** | | [optional] diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/EnumArrays.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/EnumArrays.md index 719084e5f949..c3c5e235bfed 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/EnumArrays.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/EnumArrays.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **justSymbol** | [**inline**](#JustSymbolEnum) | | [optional] -**arrayEnum** | [**inline**](#kotlin.Array<ArrayEnumEnum>) | | [optional] +**arrayEnum** | [**inline**](#kotlin.collections.List<ArrayEnumEnum>) | | [optional] @@ -15,7 +15,7 @@ Name | Value justSymbol | >=, $ - + ## Enum: array_enum Name | Value ---- | ----- diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/FileSchemaTestClass.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/FileSchemaTestClass.md index 089e61862c2a..e5512f82f6f6 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/FileSchemaTestClass.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/FileSchemaTestClass.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **file** | [**java.io.File**](java.io.File.md) | | [optional] -**files** | [**kotlin.Array<java.io.File>**](java.io.File.md) | | [optional] +**files** | [**kotlin.collections.List<java.io.File>**](java.io.File.md) | | [optional] diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/InlineObject2.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/InlineObject2.md index 0720925918bf..a98ffe031b3d 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/InlineObject2.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/InlineObject2.md @@ -4,11 +4,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**enumFormStringArray** | [**inline**](#kotlin.Array<EnumFormStringArrayEnum>) | Form parameter enum test (string array) | [optional] +**enumFormStringArray** | [**inline**](#kotlin.collections.List<EnumFormStringArrayEnum>) | Form parameter enum test (string array) | [optional] **enumFormString** | [**inline**](#EnumFormStringEnum) | Form parameter enum test (string) | [optional] - + ## Enum: enum_form_string_array Name | Value ---- | ----- diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/NullableClass.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/NullableClass.md index 9ec43d0b87c6..335943c01eae 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/NullableClass.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/NullableClass.md @@ -10,9 +10,9 @@ Name | Type | Description | Notes **stringProp** | **kotlin.String** | | [optional] **dateProp** | [**java.time.LocalDate**](java.time.LocalDate.md) | | [optional] **datetimeProp** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | | [optional] -**arrayNullableProp** | [**kotlin.Array<kotlin.Any>**](kotlin.Any.md) | | [optional] -**arrayAndItemsNullableProp** | [**kotlin.Array<kotlin.Any>**](kotlin.Any.md) | | [optional] -**arrayItemsNullable** | [**kotlin.Array<kotlin.Any>**](kotlin.Any.md) | | [optional] +**arrayNullableProp** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | | [optional] +**arrayAndItemsNullableProp** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | | [optional] +**arrayItemsNullable** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | | [optional] **objectNullableProp** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] **objectAndItemsNullableProp** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] **objectItemsNullable** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Pet.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Pet.md index 70c340005d16..c82844b5ee80 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Pet.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/Pet.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **kotlin.String** | | -**photoUrls** | **kotlin.Array<kotlin.String>** | | +**photoUrls** | **kotlin.collections.List<kotlin.String>** | | **id** | **kotlin.Long** | | [optional] **category** | [**Category**](Category.md) | | [optional] -**tags** | [**kotlin.Array<Tag>**](Tag.md) | | [optional] +**tags** | [**kotlin.collections.List<Tag>**](Tag.md) | | [optional] **status** | [**inline**](#StatusEnum) | pet status in the store | [optional] diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt index 04e474059f25..152cbc0cddf3 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param mapProperty diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Animal.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Animal.kt index 59234b2684f5..ab6e55151fc8 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Animal.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Animal.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param className diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt index 4d49a464621a..60f2617cafb2 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param code diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt index 0c88337e9c1e..db44a13b4373 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param arrayArrayNumber @@ -21,7 +22,7 @@ import java.io.Serializable data class ArrayOfArrayOfNumberOnly ( @SerializedName("ArrayArrayNumber") - val arrayArrayNumber: kotlin.Array>? = null + val arrayArrayNumber: kotlin.collections.List>? = null ) : Serializable { companion object { private const val serialVersionUID: Long = 123 diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt index 4da5b8e6d5fb..128acc125416 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param arrayNumber @@ -21,7 +22,7 @@ import java.io.Serializable data class ArrayOfNumberOnly ( @SerializedName("ArrayNumber") - val arrayNumber: kotlin.Array? = null + val arrayNumber: kotlin.collections.List? = null ) : Serializable { companion object { private const val serialVersionUID: Long = 123 diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ArrayTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ArrayTest.kt index 855cd60a3274..afb0414957b9 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ArrayTest.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ArrayTest.kt @@ -15,6 +15,7 @@ import org.openapitools.client.models.ReadOnlyFirst import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param arrayOfString @@ -24,11 +25,11 @@ import java.io.Serializable data class ArrayTest ( @SerializedName("array_of_string") - val arrayOfString: kotlin.Array? = null, + val arrayOfString: kotlin.collections.List? = null, @SerializedName("array_array_of_integer") - val arrayArrayOfInteger: kotlin.Array>? = null, + val arrayArrayOfInteger: kotlin.collections.List>? = null, @SerializedName("array_array_of_model") - val arrayArrayOfModel: kotlin.Array>? = null + val arrayArrayOfModel: kotlin.collections.List>? = null ) : Serializable { companion object { private const val serialVersionUID: Long = 123 diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Capitalization.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Capitalization.kt index 24e13278871b..cf876c94035c 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Capitalization.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Capitalization.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param smallCamel diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Cat.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Cat.kt index 7470f2504322..647155c428fc 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Cat.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Cat.kt @@ -16,6 +16,7 @@ import org.openapitools.client.models.CatAllOf import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param className diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/CatAllOf.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/CatAllOf.kt index 17d5df7c0db1..b3888433c7bb 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/CatAllOf.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/CatAllOf.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param declawed diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Category.kt index 6bfa3b0d01fb..befccbefa9ac 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param name diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ClassModel.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ClassModel.kt index 174d49148f0d..c5222d7169e0 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ClassModel.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ClassModel.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * Model for testing model with \"_class\" property * @param propertyClass diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Client.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Client.kt index 31fa6e51bf7b..3debe1d542f7 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Client.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Client.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param client diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Dog.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Dog.kt index 7965fadd703c..5be6d075450e 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Dog.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Dog.kt @@ -16,6 +16,7 @@ import org.openapitools.client.models.DogAllOf import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param className diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/DogAllOf.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/DogAllOf.kt index d67d72c09671..be81eda59734 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/DogAllOf.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/DogAllOf.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param breed diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/EnumArrays.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/EnumArrays.kt index d4ffb01a388d..2b97721e7f53 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/EnumArrays.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/EnumArrays.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param justSymbol @@ -24,7 +25,7 @@ data class EnumArrays ( @SerializedName("just_symbol") val justSymbol: EnumArrays.JustSymbol? = null, @SerializedName("array_enum") - val arrayEnum: kotlin.Array? = null + val arrayEnum: kotlin.collections.List? = null ) : Serializable { companion object { private const val serialVersionUID: Long = 123 diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/EnumTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/EnumTest.kt index 507fbaa3c059..3aceec7fe933 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/EnumTest.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/EnumTest.kt @@ -18,6 +18,7 @@ import org.openapitools.client.models.OuterEnumIntegerDefaultValue import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param enumStringRequired diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt index 1511af5d49b2..b82eddd47ccf 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param file @@ -24,7 +25,7 @@ data class FileSchemaTestClass ( @SerializedName("file") val file: java.io.File? = null, @SerializedName("files") - val files: kotlin.Array? = null + val files: kotlin.collections.List? = null ) : Serializable { companion object { private const val serialVersionUID: Long = 123 diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Foo.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Foo.kt index 1ca746f908c3..33952e4b66f1 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Foo.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Foo.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param bar diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/FormatTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/FormatTest.kt index 5b9be0b89c01..d69683337761 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/FormatTest.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/FormatTest.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param number diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt index 7608a258ae5f..3d662d38a504 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param bar diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt index 9e5a085a2c01..fe3b639cfc39 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. * @param nullableMessage diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject.kt index d75c0ded4369..24f157d5d750 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param name Updated name of the pet diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject1.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject1.kt index 1f26364b834e..2382fda34b0f 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject1.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject1.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param additionalMetadata Additional data to pass to server diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject2.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject2.kt index 57634dd3f5a2..0c85be510de8 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject2.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject2.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param enumFormStringArray Form parameter enum test (string array) @@ -23,7 +24,7 @@ import java.io.Serializable data class InlineObject2 ( /* Form parameter enum test (string array) */ @SerializedName("enum_form_string_array") - val enumFormStringArray: kotlin.Array? = null, + val enumFormStringArray: kotlin.collections.List? = null, /* Form parameter enum test (string) */ @SerializedName("enum_form_string") val enumFormString: InlineObject2.EnumFormString? = null diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject3.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject3.kt index f70af3efc5a3..37a4dbaeb49d 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject3.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject3.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param number None diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject4.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject4.kt index 5c38c52ba8d1..06b2d303be85 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject4.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject4.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param param field1 diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject5.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject5.kt index 6389765702b9..76a04940bbf6 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject5.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject5.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param requiredFile file to upload diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt index e1d3c615222a..aceb74085fee 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt @@ -15,6 +15,7 @@ import org.openapitools.client.models.Foo import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param string diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/List.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/List.kt index 1aa7715f047f..8de0d080cedc 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/List.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/List.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param `123minusList` diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/MapTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/MapTest.kt index 9c0bef747fbd..351506589b9a 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/MapTest.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/MapTest.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param mapMapOfString diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt index f1dda9dc0efe..39b0152a33f0 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt @@ -15,6 +15,7 @@ import org.openapitools.client.models.Animal import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param uuid diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Model200Response.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Model200Response.kt index 1bdb62d1b23b..1360386ee2bb 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Model200Response.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Model200Response.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * Model for testing model name starting with number * @param name diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Name.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Name.kt index 2e30b6b7cd95..e3113d603d4c 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Name.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Name.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * Model for testing model name same as property name * @param name diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/NullableClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/NullableClass.kt index 534bb572e4f1..81366b145ba2 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/NullableClass.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/NullableClass.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param integerProp @@ -44,11 +45,11 @@ data class NullableClass ( @SerializedName("datetime_prop") val datetimeProp: java.time.OffsetDateTime? = null, @SerializedName("array_nullable_prop") - val arrayNullableProp: kotlin.Array? = null, + val arrayNullableProp: kotlin.collections.List? = null, @SerializedName("array_and_items_nullable_prop") - val arrayAndItemsNullableProp: kotlin.Array? = null, + val arrayAndItemsNullableProp: kotlin.collections.List? = null, @SerializedName("array_items_nullable") - val arrayItemsNullable: kotlin.Array? = null, + val arrayItemsNullable: kotlin.collections.List? = null, @SerializedName("object_nullable_prop") val objectNullableProp: kotlin.collections.Map? = null, @SerializedName("object_and_items_nullable_prop") diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/NumberOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/NumberOnly.kt index c7138f597e10..31f01f97b083 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/NumberOnly.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/NumberOnly.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param justNumber diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Order.kt index 2a58f2be7c0d..048659fa99fa 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param id diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterComposite.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterComposite.kt index 6303e05739bc..dec8db2d9b8a 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterComposite.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterComposite.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param myNumber diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Pet.kt index 5865f9d672cd..0b389b22ba63 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -16,6 +16,7 @@ import org.openapitools.client.models.Tag import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param name @@ -30,13 +31,13 @@ data class Pet ( @SerializedName("name") val name: kotlin.String, @SerializedName("photoUrls") - val photoUrls: kotlin.Array, + val photoUrls: kotlin.collections.List, @SerializedName("id") val id: kotlin.Long? = null, @SerializedName("category") val category: Category? = null, @SerializedName("tags") - val tags: kotlin.Array? = null, + val tags: kotlin.collections.List? = null, /* pet status in the store */ @SerializedName("status") val status: Pet.Status? = null diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt index 81c3bab8745e..ef98374a6955 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param bar diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Return.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Return.kt index 166cb5aa391c..19f61d416732 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Return.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Return.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * Model for testing reserved words * @param `return` diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt index c9585969b251..23cd075e530d 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Tag.kt index e11be325ef39..9e08a3d8ae0e 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param id diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/User.kt index 433872af1e9c..ca2ce7188e52 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/User.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.google.gson.annotations.SerializedName import java.io.Serializable + /** * * @param id diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/ArrayOfArrayOfNumberOnly.md b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/ArrayOfArrayOfNumberOnly.md index 7d57b3c840f5..ac1757d00179 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/ArrayOfArrayOfNumberOnly.md +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/ArrayOfArrayOfNumberOnly.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arrayArrayNumber** | **kotlin.Array<kotlin.Array<kotlin.Double>>** | | [optional] +**arrayArrayNumber** | **kotlin.collections.List<kotlin.collections.List<kotlin.Double>>** | | [optional] diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/ArrayOfNumberOnly.md b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/ArrayOfNumberOnly.md index e5259bbe3e59..4924080666a7 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/ArrayOfNumberOnly.md +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/ArrayOfNumberOnly.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arrayNumber** | **kotlin.Array<kotlin.Double>** | | [optional] +**arrayNumber** | **kotlin.collections.List<kotlin.Double>** | | [optional] diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/ArrayTest.md b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/ArrayTest.md index aa0bbbe936c1..45e59c8fe77c 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/ArrayTest.md +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/ArrayTest.md @@ -4,9 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arrayOfString** | **kotlin.Array<kotlin.String>** | | [optional] -**arrayArrayOfInteger** | **kotlin.Array<kotlin.Array<kotlin.Long>>** | | [optional] -**arrayArrayOfModel** | **kotlin.Array<kotlin.Array<ReadOnlyFirst>>** | | [optional] +**arrayOfString** | **kotlin.collections.List<kotlin.String>** | | [optional] +**arrayArrayOfInteger** | **kotlin.collections.List<kotlin.collections.List<kotlin.Long>>** | | [optional] +**arrayArrayOfModel** | **kotlin.collections.List<kotlin.collections.List<ReadOnlyFirst>>** | | [optional] diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/EnumArrays.md b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/EnumArrays.md index 719084e5f949..c3c5e235bfed 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/EnumArrays.md +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/EnumArrays.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **justSymbol** | [**inline**](#JustSymbolEnum) | | [optional] -**arrayEnum** | [**inline**](#kotlin.Array<ArrayEnumEnum>) | | [optional] +**arrayEnum** | [**inline**](#kotlin.collections.List<ArrayEnumEnum>) | | [optional] @@ -15,7 +15,7 @@ Name | Value justSymbol | >=, $ - + ## Enum: array_enum Name | Value ---- | ----- diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/FakeApi.md b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/FakeApi.md index 2e4b0f90ffac..851d2f468215 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/FakeApi.md @@ -527,13 +527,13 @@ To test enum parameters //import org.openapitools.client.models.* val apiInstance = FakeApi() -val enumHeaderStringArray : kotlin.Array = // kotlin.Array | Header parameter enum test (string array) +val enumHeaderStringArray : kotlin.collections.List = // kotlin.collections.List | Header parameter enum test (string array) val enumHeaderString : kotlin.String = enumHeaderString_example // kotlin.String | Header parameter enum test (string) -val enumQueryStringArray : kotlin.Array = // kotlin.Array | Query parameter enum test (string array) +val enumQueryStringArray : kotlin.collections.List = // kotlin.collections.List | Query parameter enum test (string array) val enumQueryString : kotlin.String = enumQueryString_example // kotlin.String | Query parameter enum test (string) val enumQueryInteger : kotlin.Int = 56 // kotlin.Int | Query parameter enum test (double) val enumQueryDouble : kotlin.Double = 1.2 // kotlin.Double | Query parameter enum test (double) -val enumFormStringArray : kotlin.Array = enumFormStringArray_example // kotlin.Array | Form parameter enum test (string array) +val enumFormStringArray : kotlin.collections.List = enumFormStringArray_example // kotlin.collections.List | Form parameter enum test (string array) val enumFormString : kotlin.String = enumFormString_example // kotlin.String | Form parameter enum test (string) try { apiInstance.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString) @@ -550,13 +550,13 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **enumHeaderStringArray** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Header parameter enum test (string array) | [optional] [enum: >, $] + **enumHeaderStringArray** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Header parameter enum test (string array) | [optional] [enum: >, $] **enumHeaderString** | **kotlin.String**| Header parameter enum test (string) | [optional] [default to "-efg"] [enum: _abc, -efg, (xyz)] - **enumQueryStringArray** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] + **enumQueryStringArray** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] **enumQueryString** | **kotlin.String**| Query parameter enum test (string) | [optional] [default to "-efg"] [enum: _abc, -efg, (xyz)] **enumQueryInteger** | **kotlin.Int**| Query parameter enum test (double) | [optional] [enum: 1, -2] **enumQueryDouble** | **kotlin.Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] - **enumFormStringArray** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Form parameter enum test (string array) | [optional] [default to "$"] [enum: >, $] + **enumFormStringArray** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Form parameter enum test (string array) | [optional] [default to "$"] [enum: >, $] **enumFormString** | **kotlin.String**| Form parameter enum test (string) | [optional] [default to "-efg"] [enum: _abc, -efg, (xyz)] ### Return type @@ -735,11 +735,11 @@ To test the collection format in query parameters //import org.openapitools.client.models.* val apiInstance = FakeApi() -val pipe : kotlin.Array = // kotlin.Array | -val ioutil : kotlin.Array = // kotlin.Array | -val http : kotlin.Array = // kotlin.Array | -val url : kotlin.Array = // kotlin.Array | -val context : kotlin.Array = // kotlin.Array | +val pipe : kotlin.collections.List = // kotlin.collections.List | +val ioutil : kotlin.collections.List = // kotlin.collections.List | +val http : kotlin.collections.List = // kotlin.collections.List | +val url : kotlin.collections.List = // kotlin.collections.List | +val context : kotlin.collections.List = // kotlin.collections.List | try { apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context) } catch (e: ClientException) { @@ -755,11 +755,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pipe** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| | - **ioutil** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| | - **http** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| | - **url** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| | - **context** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| | + **pipe** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| | + **ioutil** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| | + **http** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| | + **url** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| | + **context** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| | ### Return type diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/FileSchemaTestClass.md b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/FileSchemaTestClass.md index d49a2b6e4457..1382ab8a7781 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/FileSchemaTestClass.md +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/FileSchemaTestClass.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **file** | [**org.openapitools.client.infrastructure.OctetByteArray**](org.openapitools.client.infrastructure.OctetByteArray.md) | | [optional] -**files** | [**kotlin.Array<org.openapitools.client.infrastructure.OctetByteArray>**](org.openapitools.client.infrastructure.OctetByteArray.md) | | [optional] +**files** | [**kotlin.collections.List<org.openapitools.client.infrastructure.OctetByteArray>**](org.openapitools.client.infrastructure.OctetByteArray.md) | | [optional] diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/InlineObject2.md b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/InlineObject2.md index 0720925918bf..a98ffe031b3d 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/InlineObject2.md +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/InlineObject2.md @@ -4,11 +4,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**enumFormStringArray** | [**inline**](#kotlin.Array<EnumFormStringArrayEnum>) | Form parameter enum test (string array) | [optional] +**enumFormStringArray** | [**inline**](#kotlin.collections.List<EnumFormStringArrayEnum>) | Form parameter enum test (string array) | [optional] **enumFormString** | [**inline**](#EnumFormStringEnum) | Form parameter enum test (string) | [optional] - + ## Enum: enum_form_string_array Name | Value ---- | ----- diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/NullableClass.md b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/NullableClass.md index c2813940f147..298b9f8fe8ef 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/NullableClass.md +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/NullableClass.md @@ -10,9 +10,9 @@ Name | Type | Description | Notes **stringProp** | **kotlin.String** | | [optional] **dateProp** | **kotlin.String** | | [optional] **datetimeProp** | **kotlin.String** | | [optional] -**arrayNullableProp** | **kotlin.Array<kotlin.String>** | | [optional] -**arrayAndItemsNullableProp** | **kotlin.Array<kotlin.String>** | | [optional] -**arrayItemsNullable** | **kotlin.Array<kotlin.String>** | | [optional] +**arrayNullableProp** | **kotlin.collections.List<kotlin.String>** | | [optional] +**arrayAndItemsNullableProp** | **kotlin.collections.List<kotlin.String>** | | [optional] +**arrayItemsNullable** | **kotlin.collections.List<kotlin.String>** | | [optional] **objectNullableProp** | **kotlin.collections.Map<kotlin.String, kotlin.String>** | | [optional] **objectAndItemsNullableProp** | **kotlin.collections.Map<kotlin.String, kotlin.String>** | | [optional] **objectItemsNullable** | **kotlin.collections.Map<kotlin.String, kotlin.String>** | | [optional] diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/Pet.md b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/Pet.md index 70c340005d16..c82844b5ee80 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/Pet.md +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/Pet.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **kotlin.String** | | -**photoUrls** | **kotlin.Array<kotlin.String>** | | +**photoUrls** | **kotlin.collections.List<kotlin.String>** | | **id** | **kotlin.Long** | | [optional] **category** | [**Category**](Category.md) | | [optional] -**tags** | [**kotlin.Array<Tag>**](Tag.md) | | [optional] +**tags** | [**kotlin.collections.List<Tag>**](Tag.md) | | [optional] **status** | [**inline**](#StatusEnum) | pet status in the store | [optional] diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/PetApi.md b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/PetApi.md index a07ff10e9376..15761ec64f9c 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/PetApi.md +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/PetApi.md @@ -111,7 +111,7 @@ Configure petstore_auth: # **findPetsByStatus** -> kotlin.Array<Pet> findPetsByStatus(status) +> kotlin.collections.List<Pet> findPetsByStatus(status) Finds Pets by status @@ -124,9 +124,9 @@ Multiple status values can be provided with comma separated strings //import org.openapitools.client.models.* val apiInstance = PetApi() -val status : kotlin.Array = // kotlin.Array | Status values that need to be considered for filter +val status : kotlin.collections.List = // kotlin.collections.List | Status values that need to be considered for filter try { - val result : kotlin.Array = apiInstance.findPetsByStatus(status) + val result : kotlin.collections.List = apiInstance.findPetsByStatus(status) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByStatus") @@ -141,11 +141,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] + **status** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization @@ -160,7 +160,7 @@ Configure petstore_auth: # **findPetsByTags** -> kotlin.Array<Pet> findPetsByTags(tags) +> kotlin.collections.List<Pet> findPetsByTags(tags) Finds Pets by tags @@ -173,9 +173,9 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 //import org.openapitools.client.models.* val apiInstance = PetApi() -val tags : kotlin.Array = // kotlin.Array | Tags to filter by +val tags : kotlin.collections.List = // kotlin.collections.List | Tags to filter by try { - val result : kotlin.Array = apiInstance.findPetsByTags(tags) + val result : kotlin.collections.List = apiInstance.findPetsByTags(tags) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByTags") @@ -190,11 +190,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tags** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Tags to filter by | + **tags** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Tags to filter by | ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/UserApi.md b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/UserApi.md index dbf78e81eb22..543cbee5a390 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/UserApi.md +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/UserApi.md @@ -73,7 +73,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val user : kotlin.Array = // kotlin.Array | List of user object +val user : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithArrayInput(user) } catch (e: ClientException) { @@ -89,7 +89,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**kotlin.Array<User>**](User.md)| List of user object | + **user** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type @@ -117,7 +117,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val user : kotlin.Array = // kotlin.Array | List of user object +val user : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithListInput(user) } catch (e: ClientException) { @@ -133,7 +133,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**kotlin.Array<User>**](User.md)| List of user object | + **user** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/gradle/wrapper/gradle-wrapper.jar b/samples/openapi3/client/petstore/kotlin-multiplatform/gradle/wrapper/gradle-wrapper.jar index 886ca115d4af..2c6137b87896 100644 Binary files a/samples/openapi3/client/petstore/kotlin-multiplatform/gradle/wrapper/gradle-wrapper.jar and b/samples/openapi3/client/petstore/kotlin-multiplatform/gradle/wrapper/gradle-wrapper.jar differ diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/AnotherFakeApi.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/AnotherFakeApi.kt index 23f6e27e4892..2e6797008b4c 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/AnotherFakeApi.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/AnotherFakeApi.kt @@ -25,26 +25,26 @@ import kotlinx.serialization.* import kotlinx.serialization.internal.StringDescriptor class AnotherFakeApi @UseExperimental(UnstableDefault::class) constructor( - baseUrl: kotlin.String = "http://petstore.swagger.io:80/v2", - httpClientEngine: HttpClientEngine? = null, - serializer: KotlinxSerializer) - : ApiClient(baseUrl, httpClientEngine, serializer) { + baseUrl: kotlin.String = "http://petstore.swagger.io:80/v2", + httpClientEngine: HttpClientEngine? = null, + serializer: KotlinxSerializer +) : ApiClient(baseUrl, httpClientEngine, serializer) { @UseExperimental(UnstableDefault::class) constructor( baseUrl: kotlin.String = "http://petstore.swagger.io:80/v2", httpClientEngine: HttpClientEngine? = null, - jsonConfiguration: JsonConfiguration = JsonConfiguration.Default) - : this(baseUrl, httpClientEngine, KotlinxSerializer(Json(jsonConfiguration))) + jsonConfiguration: JsonConfiguration = JsonConfiguration.Default + ) : this(baseUrl, httpClientEngine, KotlinxSerializer(Json(jsonConfiguration))) /** - * To test special tags - * To test special tags and operation ID starting with number - * @param client client model - * @return Client - */ + * To test special tags + * To test special tags and operation ID starting with number + * @param client client model + * @return Client + */ @Suppress("UNCHECKED_CAST") - suspend fun call123testSpecialTags(client: Client) : HttpResponse { + suspend fun call123testSpecialTags(client: Client): HttpResponse { val localVariableAuthNames = listOf() @@ -68,7 +68,7 @@ class AnotherFakeApi @UseExperimental(UnstableDefault::class) constructor( ).wrap() } - + companion object { diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/DefaultApi.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/DefaultApi.kt index 6b0bae98cfb7..a9e9658507b7 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/DefaultApi.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/DefaultApi.kt @@ -25,25 +25,25 @@ import kotlinx.serialization.* import kotlinx.serialization.internal.StringDescriptor class DefaultApi @UseExperimental(UnstableDefault::class) constructor( - baseUrl: kotlin.String = "http://petstore.swagger.io:80/v2", - httpClientEngine: HttpClientEngine? = null, - serializer: KotlinxSerializer) - : ApiClient(baseUrl, httpClientEngine, serializer) { + baseUrl: kotlin.String = "http://petstore.swagger.io:80/v2", + httpClientEngine: HttpClientEngine? = null, + serializer: KotlinxSerializer +) : ApiClient(baseUrl, httpClientEngine, serializer) { @UseExperimental(UnstableDefault::class) constructor( baseUrl: kotlin.String = "http://petstore.swagger.io:80/v2", httpClientEngine: HttpClientEngine? = null, - jsonConfiguration: JsonConfiguration = JsonConfiguration.Default) - : this(baseUrl, httpClientEngine, KotlinxSerializer(Json(jsonConfiguration))) + jsonConfiguration: JsonConfiguration = JsonConfiguration.Default + ) : this(baseUrl, httpClientEngine, KotlinxSerializer(Json(jsonConfiguration))) /** - * - * - * @return InlineResponseDefault - */ + * + * + * @return InlineResponseDefault + */ @Suppress("UNCHECKED_CAST") - suspend fun fooGet() : HttpResponse { + suspend fun fooGet(): HttpResponse { val localVariableAuthNames = listOf() diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/FakeApi.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/FakeApi.kt index cef3f0a161ad..d98ccb9adb01 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/FakeApi.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/FakeApi.kt @@ -30,25 +30,25 @@ import kotlinx.serialization.* import kotlinx.serialization.internal.StringDescriptor class FakeApi @UseExperimental(UnstableDefault::class) constructor( - baseUrl: kotlin.String = "http://petstore.swagger.io:80/v2", - httpClientEngine: HttpClientEngine? = null, - serializer: KotlinxSerializer) - : ApiClient(baseUrl, httpClientEngine, serializer) { + baseUrl: kotlin.String = "http://petstore.swagger.io:80/v2", + httpClientEngine: HttpClientEngine? = null, + serializer: KotlinxSerializer +) : ApiClient(baseUrl, httpClientEngine, serializer) { @UseExperimental(UnstableDefault::class) constructor( baseUrl: kotlin.String = "http://petstore.swagger.io:80/v2", httpClientEngine: HttpClientEngine? = null, - jsonConfiguration: JsonConfiguration = JsonConfiguration.Default) - : this(baseUrl, httpClientEngine, KotlinxSerializer(Json(jsonConfiguration))) + jsonConfiguration: JsonConfiguration = JsonConfiguration.Default + ) : this(baseUrl, httpClientEngine, KotlinxSerializer(Json(jsonConfiguration))) /** - * Health check endpoint - * - * @return HealthCheckResult - */ + * Health check endpoint + * + * @return HealthCheckResult + */ @Suppress("UNCHECKED_CAST") - suspend fun fakeHealthGet() : HttpResponse { + suspend fun fakeHealthGet(): HttpResponse { val localVariableAuthNames = listOf() @@ -75,14 +75,14 @@ class FakeApi @UseExperimental(UnstableDefault::class) constructor( /** - * test http signature authentication - * - * @param pet Pet object that needs to be added to the store - * @param query1 query parameter (optional) - * @param header1 header parameter (optional) - * @return void - */ - suspend fun fakeHttpSignatureTest(pet: Pet, query1: kotlin.String?, header1: kotlin.String?) : HttpResponse { + * test http signature authentication + * + * @param pet Pet object that needs to be added to the store + * @param query1 query parameter (optional) + * @param header1 header parameter (optional) + * @return void + */ + suspend fun fakeHttpSignatureTest(pet: Pet, query1: kotlin.String?, header1: kotlin.String?): HttpResponse { val localVariableAuthNames = listOf("http_signature_test") @@ -108,16 +108,16 @@ class FakeApi @UseExperimental(UnstableDefault::class) constructor( ).wrap() } - + /** - * - * Test serialization of outer boolean types - * @param body Input boolean as post body (optional) - * @return kotlin.Boolean - */ + * + * Test serialization of outer boolean types + * @param body Input boolean as post body (optional) + * @return kotlin.Boolean + */ @Suppress("UNCHECKED_CAST") - suspend fun fakeOuterBooleanSerialize(body: kotlin.Boolean?) : HttpResponse { + suspend fun fakeOuterBooleanSerialize(body: kotlin.Boolean?): HttpResponse { val localVariableAuthNames = listOf() @@ -141,16 +141,16 @@ class FakeApi @UseExperimental(UnstableDefault::class) constructor( ).wrap() } - + /** - * - * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) - * @return OuterComposite - */ + * + * Test serialization of object with outer number type + * @param outerComposite Input composite as post body (optional) + * @return OuterComposite + */ @Suppress("UNCHECKED_CAST") - suspend fun fakeOuterCompositeSerialize(outerComposite: OuterComposite?) : HttpResponse { + suspend fun fakeOuterCompositeSerialize(outerComposite: OuterComposite?): HttpResponse { val localVariableAuthNames = listOf() @@ -174,16 +174,16 @@ class FakeApi @UseExperimental(UnstableDefault::class) constructor( ).wrap() } - + /** - * - * Test serialization of outer number types - * @param body Input number as post body (optional) - * @return kotlin.Double - */ + * + * Test serialization of outer number types + * @param body Input number as post body (optional) + * @return kotlin.Double + */ @Suppress("UNCHECKED_CAST") - suspend fun fakeOuterNumberSerialize(body: kotlin.Double?) : HttpResponse { + suspend fun fakeOuterNumberSerialize(body: kotlin.Double?): HttpResponse { val localVariableAuthNames = listOf() @@ -207,16 +207,16 @@ class FakeApi @UseExperimental(UnstableDefault::class) constructor( ).wrap() } - + /** - * - * Test serialization of outer string types - * @param body Input string as post body (optional) - * @return kotlin.String - */ + * + * Test serialization of outer string types + * @param body Input string as post body (optional) + * @return kotlin.String + */ @Suppress("UNCHECKED_CAST") - suspend fun fakeOuterStringSerialize(body: kotlin.String?) : HttpResponse { + suspend fun fakeOuterStringSerialize(body: kotlin.String?): HttpResponse { val localVariableAuthNames = listOf() @@ -240,15 +240,15 @@ class FakeApi @UseExperimental(UnstableDefault::class) constructor( ).wrap() } - + /** - * - * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass - * @return void - */ - suspend fun testBodyWithFileSchema(fileSchemaTestClass: FileSchemaTestClass) : HttpResponse { + * + * For this test, the body for this request much reference a schema named `File`. + * @param fileSchemaTestClass + * @return void + */ + suspend fun testBodyWithFileSchema(fileSchemaTestClass: FileSchemaTestClass): HttpResponse { val localVariableAuthNames = listOf() @@ -272,16 +272,16 @@ class FakeApi @UseExperimental(UnstableDefault::class) constructor( ).wrap() } - + /** - * - * - * @param query - * @param user - * @return void - */ - suspend fun testBodyWithQueryParams(query: kotlin.String, user: User) : HttpResponse { + * + * + * @param query + * @param user + * @return void + */ + suspend fun testBodyWithQueryParams(query: kotlin.String, user: User): HttpResponse { val localVariableAuthNames = listOf() @@ -306,16 +306,16 @@ class FakeApi @UseExperimental(UnstableDefault::class) constructor( ).wrap() } - + /** - * To test \"client\" model - * To test \"client\" model - * @param client client model - * @return Client - */ + * To test \"client\" model + * To test \"client\" model + * @param client client model + * @return Client + */ @Suppress("UNCHECKED_CAST") - suspend fun testClientModel(client: Client) : HttpResponse { + suspend fun testClientModel(client: Client): HttpResponse { val localVariableAuthNames = listOf() @@ -339,28 +339,28 @@ class FakeApi @UseExperimental(UnstableDefault::class) constructor( ).wrap() } - + /** - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * @param number None - * @param double None - * @param patternWithoutDelimiter None - * @param byte None - * @param integer None (optional) - * @param int32 None (optional) - * @param int64 None (optional) - * @param float None (optional) - * @param string None (optional) - * @param binary None (optional) - * @param date None (optional) - * @param dateTime None (optional) - * @param password None (optional) - * @param paramCallback None (optional) - * @return void - */ - suspend fun testEndpointParameters(number: kotlin.Double, double: kotlin.Double, patternWithoutDelimiter: kotlin.String, byte: org.openapitools.client.infrastructure.Base64ByteArray, integer: kotlin.Int?, int32: kotlin.Int?, int64: kotlin.Long?, float: kotlin.Float?, string: kotlin.String?, binary: io.ktor.client.request.forms.InputProvider?, date: kotlin.String?, dateTime: kotlin.String?, password: kotlin.String?, paramCallback: kotlin.String?) : HttpResponse { + * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + * @param number None + * @param double None + * @param patternWithoutDelimiter None + * @param byte None + * @param integer None (optional) + * @param int32 None (optional) + * @param int64 None (optional) + * @param float None (optional) + * @param string None (optional) + * @param binary None (optional) + * @param date None (optional) + * @param dateTime None (optional) + * @param password None (optional) + * @param paramCallback None (optional) + * @return void + */ + suspend fun testEndpointParameters(number: kotlin.Double, double: kotlin.Double, patternWithoutDelimiter: kotlin.String, byte: org.openapitools.client.infrastructure.Base64ByteArray, integer: kotlin.Int?, int32: kotlin.Int?, int64: kotlin.Long?, float: kotlin.Float?, string: kotlin.String?, binary: io.ktor.client.request.forms.InputProvider?, date: kotlin.String?, dateTime: kotlin.String?, password: kotlin.String?, paramCallback: kotlin.String?): HttpResponse { val localVariableAuthNames = listOf("http_basic_test") @@ -402,19 +402,19 @@ class FakeApi @UseExperimental(UnstableDefault::class) constructor( /** - * To test enum parameters - * To test enum parameters - * @param enumHeaderStringArray Header parameter enum test (string array) (optional) - * @param enumHeaderString Header parameter enum test (string) (optional, default to "-efg") - * @param enumQueryStringArray Query parameter enum test (string array) (optional) - * @param enumQueryString Query parameter enum test (string) (optional, default to "-efg") - * @param enumQueryInteger Query parameter enum test (double) (optional) - * @param enumQueryDouble Query parameter enum test (double) (optional) - * @param enumFormStringArray Form parameter enum test (string array) (optional, default to "$") - * @param enumFormString Form parameter enum test (string) (optional, default to "-efg") - * @return void - */ - suspend fun testEnumParameters(enumHeaderStringArray: kotlin.Array?, enumHeaderString: kotlin.String?, enumQueryStringArray: kotlin.Array?, enumQueryString: kotlin.String?, enumQueryInteger: kotlin.Int?, enumQueryDouble: kotlin.Double?, enumFormStringArray: kotlin.Array?, enumFormString: kotlin.String?) : HttpResponse { + * To test enum parameters + * To test enum parameters + * @param enumHeaderStringArray Header parameter enum test (string array) (optional) + * @param enumHeaderString Header parameter enum test (string) (optional, default to "-efg") + * @param enumQueryStringArray Query parameter enum test (string array) (optional) + * @param enumQueryString Query parameter enum test (string) (optional, default to "-efg") + * @param enumQueryInteger Query parameter enum test (double) (optional) + * @param enumQueryDouble Query parameter enum test (double) (optional) + * @param enumFormStringArray Form parameter enum test (string array) (optional, default to "$") + * @param enumFormString Form parameter enum test (string) (optional, default to "-efg") + * @return void + */ + suspend fun testEnumParameters(enumHeaderStringArray: kotlin.collections.List?, enumHeaderString: kotlin.String?, enumQueryStringArray: kotlin.collections.List?, enumQueryString: kotlin.String?, enumQueryInteger: kotlin.Int?, enumQueryDouble: kotlin.Double?, enumFormStringArray: kotlin.collections.List?, enumFormString: kotlin.String?): HttpResponse { val localVariableAuthNames = listOf() @@ -450,17 +450,17 @@ class FakeApi @UseExperimental(UnstableDefault::class) constructor( /** - * Fake endpoint to test group parameters (optional) - * Fake endpoint to test group parameters (optional) - * @param requiredStringGroup Required String in group parameters - * @param requiredBooleanGroup Required Boolean in group parameters - * @param requiredInt64Group Required Integer in group parameters - * @param stringGroup String in group parameters (optional) - * @param booleanGroup Boolean in group parameters (optional) - * @param int64Group Integer in group parameters (optional) - * @return void - */ - suspend fun testGroupParameters(requiredStringGroup: kotlin.Int, requiredBooleanGroup: kotlin.Boolean, requiredInt64Group: kotlin.Long, stringGroup: kotlin.Int?, booleanGroup: kotlin.Boolean?, int64Group: kotlin.Long?) : HttpResponse { + * Fake endpoint to test group parameters (optional) + * Fake endpoint to test group parameters (optional) + * @param requiredStringGroup Required String in group parameters + * @param requiredBooleanGroup Required Boolean in group parameters + * @param requiredInt64Group Required Integer in group parameters + * @param stringGroup String in group parameters (optional) + * @param booleanGroup Boolean in group parameters (optional) + * @param int64Group Integer in group parameters (optional) + * @return void + */ + suspend fun testGroupParameters(requiredStringGroup: kotlin.Int, requiredBooleanGroup: kotlin.Boolean, requiredInt64Group: kotlin.Long, stringGroup: kotlin.Int?, booleanGroup: kotlin.Boolean?, int64Group: kotlin.Long?): HttpResponse { val localVariableAuthNames = listOf("bearer_test") @@ -493,12 +493,12 @@ class FakeApi @UseExperimental(UnstableDefault::class) constructor( /** - * test inline additionalProperties - * - * @param requestBody request body - * @return void - */ - suspend fun testInlineAdditionalProperties(requestBody: kotlin.collections.Map) : HttpResponse { + * test inline additionalProperties + * + * @param requestBody request body + * @return void + */ + suspend fun testInlineAdditionalProperties(requestBody: kotlin.collections.Map): HttpResponse { val localVariableAuthNames = listOf() @@ -523,24 +523,24 @@ class FakeApi @UseExperimental(UnstableDefault::class) constructor( } @Serializable -private class TestInlineAdditionalPropertiesRequest(val value: Map) { - @Serializer(TestInlineAdditionalPropertiesRequest::class) - companion object : KSerializer { - private val serializer: KSerializer> = (kotlin.String.serializer() to kotlin.String.serializer()).map - override val descriptor = StringDescriptor.withName("TestInlineAdditionalPropertiesRequest") - override fun serialize(encoder: Encoder, obj: TestInlineAdditionalPropertiesRequest) = serializer.serialize(encoder, obj.value) - override fun deserialize(decoder: Decoder) = TestInlineAdditionalPropertiesRequest(serializer.deserialize(decoder)) + private class TestInlineAdditionalPropertiesRequest(val value: Map) { + @Serializer(TestInlineAdditionalPropertiesRequest::class) + companion object : KSerializer { + private val serializer: KSerializer> = (kotlin.String.serializer() to kotlin.String.serializer()).map + override val descriptor = StringDescriptor.withName("TestInlineAdditionalPropertiesRequest") + override fun serialize(encoder: Encoder, obj: TestInlineAdditionalPropertiesRequest) = serializer.serialize(encoder, obj.value) + override fun deserialize(decoder: Decoder) = TestInlineAdditionalPropertiesRequest(serializer.deserialize(decoder)) + } } -} /** - * test json serialization of form data - * - * @param param field1 - * @param param2 field2 - * @return void - */ - suspend fun testJsonFormData(param: kotlin.String, param2: kotlin.String) : HttpResponse { + * test json serialization of form data + * + * @param param field1 + * @param param2 field2 + * @return void + */ + suspend fun testJsonFormData(param: kotlin.String, param2: kotlin.String): HttpResponse { val localVariableAuthNames = listOf() @@ -570,16 +570,16 @@ private class TestInlineAdditionalPropertiesRequest(val value: Map, ioutil: kotlin.Array, http: kotlin.Array, url: kotlin.Array, context: kotlin.Array) : HttpResponse { + * + * To test the collection format in query parameters + * @param pipe + * @param ioutil + * @param http + * @param url + * @param context + * @return void + */ + suspend fun testQueryParameterCollectionFormat(pipe: kotlin.collections.List, ioutil: kotlin.collections.List, http: kotlin.collections.List, url: kotlin.collections.List, context: kotlin.collections.List): HttpResponse { val localVariableAuthNames = listOf() diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/FakeClassnameTags123Api.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/FakeClassnameTags123Api.kt index 489ad0faf759..6c49f08b014c 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/FakeClassnameTags123Api.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/FakeClassnameTags123Api.kt @@ -25,26 +25,26 @@ import kotlinx.serialization.* import kotlinx.serialization.internal.StringDescriptor class FakeClassnameTags123Api @UseExperimental(UnstableDefault::class) constructor( - baseUrl: kotlin.String = "http://petstore.swagger.io:80/v2", - httpClientEngine: HttpClientEngine? = null, - serializer: KotlinxSerializer) - : ApiClient(baseUrl, httpClientEngine, serializer) { + baseUrl: kotlin.String = "http://petstore.swagger.io:80/v2", + httpClientEngine: HttpClientEngine? = null, + serializer: KotlinxSerializer +) : ApiClient(baseUrl, httpClientEngine, serializer) { @UseExperimental(UnstableDefault::class) constructor( baseUrl: kotlin.String = "http://petstore.swagger.io:80/v2", httpClientEngine: HttpClientEngine? = null, - jsonConfiguration: JsonConfiguration = JsonConfiguration.Default) - : this(baseUrl, httpClientEngine, KotlinxSerializer(Json(jsonConfiguration))) + jsonConfiguration: JsonConfiguration = JsonConfiguration.Default + ) : this(baseUrl, httpClientEngine, KotlinxSerializer(Json(jsonConfiguration))) /** - * To test class name in snake case - * To test class name in snake case - * @param client client model - * @return Client - */ + * To test class name in snake case + * To test class name in snake case + * @param client client model + * @return Client + */ @Suppress("UNCHECKED_CAST") - suspend fun testClassname(client: Client) : HttpResponse { + suspend fun testClassname(client: Client): HttpResponse { val localVariableAuthNames = listOf("api_key_query") @@ -68,7 +68,7 @@ class FakeClassnameTags123Api @UseExperimental(UnstableDefault::class) construct ).wrap() } - + companion object { diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/PetApi.kt index 19afc14b59ef..f282ca25696d 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/PetApi.kt @@ -26,25 +26,25 @@ import kotlinx.serialization.* import kotlinx.serialization.internal.StringDescriptor class PetApi @UseExperimental(UnstableDefault::class) constructor( - baseUrl: kotlin.String = "http://petstore.swagger.io:80/v2", - httpClientEngine: HttpClientEngine? = null, - serializer: KotlinxSerializer) - : ApiClient(baseUrl, httpClientEngine, serializer) { + baseUrl: kotlin.String = "http://petstore.swagger.io:80/v2", + httpClientEngine: HttpClientEngine? = null, + serializer: KotlinxSerializer +) : ApiClient(baseUrl, httpClientEngine, serializer) { @UseExperimental(UnstableDefault::class) constructor( baseUrl: kotlin.String = "http://petstore.swagger.io:80/v2", httpClientEngine: HttpClientEngine? = null, - jsonConfiguration: JsonConfiguration = JsonConfiguration.Default) - : this(baseUrl, httpClientEngine, KotlinxSerializer(Json(jsonConfiguration))) + jsonConfiguration: JsonConfiguration = JsonConfiguration.Default + ) : this(baseUrl, httpClientEngine, KotlinxSerializer(Json(jsonConfiguration))) /** - * Add a new pet to the store - * - * @param pet Pet object that needs to be added to the store - * @return void - */ - suspend fun addPet(pet: Pet) : HttpResponse { + * Add a new pet to the store + * + * @param pet Pet object that needs to be added to the store + * @return void + */ + suspend fun addPet(pet: Pet): HttpResponse { val localVariableAuthNames = listOf("petstore_auth") @@ -68,16 +68,16 @@ class PetApi @UseExperimental(UnstableDefault::class) constructor( ).wrap() } - + /** - * Deletes a pet - * - * @param petId Pet id to delete - * @param apiKey (optional) - * @return void - */ - suspend fun deletePet(petId: kotlin.Long, apiKey: kotlin.String?) : HttpResponse { + * Deletes a pet + * + * @param petId Pet id to delete + * @param apiKey (optional) + * @return void + */ + suspend fun deletePet(petId: kotlin.Long, apiKey: kotlin.String?): HttpResponse { val localVariableAuthNames = listOf("petstore_auth") @@ -91,7 +91,7 @@ class PetApi @UseExperimental(UnstableDefault::class) constructor( val localVariableConfig = RequestConfig( RequestMethod.DELETE, - "/pet/{petId}".replace("{"+"petId"+"}", "$petId"), + "/pet/{petId}".replace("{" + "petId" + "}", "$petId"), query = localVariableQuery, headers = localVariableHeaders ) @@ -105,13 +105,13 @@ class PetApi @UseExperimental(UnstableDefault::class) constructor( /** - * Finds Pets by status - * Multiple status values can be provided with comma separated strings - * @param status Status values that need to be considered for filter - * @return kotlin.Array - */ + * Finds Pets by status + * Multiple status values can be provided with comma separated strings + * @param status Status values that need to be considered for filter + * @return kotlin.collections.List + */ @Suppress("UNCHECKED_CAST") - suspend fun findPetsByStatus(status: kotlin.Array) : HttpResponse> { + suspend fun findPetsByStatus(status: kotlin.collections.List): HttpResponse> { val localVariableAuthNames = listOf("petstore_auth") @@ -134,28 +134,28 @@ class PetApi @UseExperimental(UnstableDefault::class) constructor( localVariableConfig, localVariableBody, localVariableAuthNames - ).wrap().map { value.toTypedArray() } + ).wrap().map { value } } @Serializable -private class FindPetsByStatusResponse(val value: List) { - @Serializer(FindPetsByStatusResponse::class) - companion object : KSerializer { - private val serializer: KSerializer> = Pet.serializer().list - override val descriptor = StringDescriptor.withName("FindPetsByStatusResponse") - override fun serialize(encoder: Encoder, obj: FindPetsByStatusResponse) = serializer.serialize(encoder, obj.value) - override fun deserialize(decoder: Decoder) = FindPetsByStatusResponse(serializer.deserialize(decoder)) + private class FindPetsByStatusResponse(val value: List) { + @Serializer(FindPetsByStatusResponse::class) + companion object : KSerializer { + private val serializer: KSerializer> = Pet.serializer().list + override val descriptor = StringDescriptor.withName("FindPetsByStatusResponse") + override fun serialize(encoder: Encoder, obj: FindPetsByStatusResponse) = serializer.serialize(encoder, obj.value) + override fun deserialize(decoder: Decoder) = FindPetsByStatusResponse(serializer.deserialize(decoder)) + } } -} /** - * Finds Pets by tags - * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. - * @param tags Tags to filter by - * @return kotlin.Array - */ + * Finds Pets by tags + * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + * @param tags Tags to filter by + * @return kotlin.collections.List + */ @Suppress("UNCHECKED_CAST") - suspend fun findPetsByTags(tags: kotlin.Array) : HttpResponse> { + suspend fun findPetsByTags(tags: kotlin.collections.List): HttpResponse> { val localVariableAuthNames = listOf("petstore_auth") @@ -178,28 +178,28 @@ private class FindPetsByStatusResponse(val value: List) { localVariableConfig, localVariableBody, localVariableAuthNames - ).wrap().map { value.toTypedArray() } + ).wrap().map { value } } @Serializable -private class FindPetsByTagsResponse(val value: List) { - @Serializer(FindPetsByTagsResponse::class) - companion object : KSerializer { - private val serializer: KSerializer> = Pet.serializer().list - override val descriptor = StringDescriptor.withName("FindPetsByTagsResponse") - override fun serialize(encoder: Encoder, obj: FindPetsByTagsResponse) = serializer.serialize(encoder, obj.value) - override fun deserialize(decoder: Decoder) = FindPetsByTagsResponse(serializer.deserialize(decoder)) + private class FindPetsByTagsResponse(val value: List) { + @Serializer(FindPetsByTagsResponse::class) + companion object : KSerializer { + private val serializer: KSerializer> = Pet.serializer().list + override val descriptor = StringDescriptor.withName("FindPetsByTagsResponse") + override fun serialize(encoder: Encoder, obj: FindPetsByTagsResponse) = serializer.serialize(encoder, obj.value) + override fun deserialize(decoder: Decoder) = FindPetsByTagsResponse(serializer.deserialize(decoder)) + } } -} /** - * Find pet by ID - * Returns a single pet - * @param petId ID of pet to return - * @return Pet - */ + * Find pet by ID + * Returns a single pet + * @param petId ID of pet to return + * @return Pet + */ @Suppress("UNCHECKED_CAST") - suspend fun getPetById(petId: kotlin.Long) : HttpResponse { + suspend fun getPetById(petId: kotlin.Long): HttpResponse { val localVariableAuthNames = listOf("api_key") @@ -212,7 +212,7 @@ private class FindPetsByTagsResponse(val value: List) { val localVariableConfig = RequestConfig( RequestMethod.GET, - "/pet/{petId}".replace("{"+"petId"+"}", "$petId"), + "/pet/{petId}".replace("{" + "petId" + "}", "$petId"), query = localVariableQuery, headers = localVariableHeaders ) @@ -226,12 +226,12 @@ private class FindPetsByTagsResponse(val value: List) { /** - * Update an existing pet - * - * @param pet Pet object that needs to be added to the store - * @return void - */ - suspend fun updatePet(pet: Pet) : HttpResponse { + * Update an existing pet + * + * @param pet Pet object that needs to be added to the store + * @return void + */ + suspend fun updatePet(pet: Pet): HttpResponse { val localVariableAuthNames = listOf("petstore_auth") @@ -255,17 +255,17 @@ private class FindPetsByTagsResponse(val value: List) { ).wrap() } - + /** - * Updates a pet in the store with form data - * - * @param petId ID of pet that needs to be updated - * @param name Updated name of the pet (optional) - * @param status Updated status of the pet (optional) - * @return void - */ - suspend fun updatePetWithForm(petId: kotlin.Long, name: kotlin.String?, status: kotlin.String?) : HttpResponse { + * Updates a pet in the store with form data + * + * @param petId ID of pet that needs to be updated + * @param name Updated name of the pet (optional) + * @param status Updated status of the pet (optional) + * @return void + */ + suspend fun updatePetWithForm(petId: kotlin.Long, name: kotlin.String?, status: kotlin.String?): HttpResponse { val localVariableAuthNames = listOf("petstore_auth") @@ -281,7 +281,7 @@ private class FindPetsByTagsResponse(val value: List) { val localVariableConfig = RequestConfig( RequestMethod.POST, - "/pet/{petId}".replace("{"+"petId"+"}", "$petId"), + "/pet/{petId}".replace("{" + "petId" + "}", "$petId"), query = localVariableQuery, headers = localVariableHeaders ) @@ -295,15 +295,15 @@ private class FindPetsByTagsResponse(val value: List) { /** - * uploads an image - * - * @param petId ID of pet to update - * @param additionalMetadata Additional data to pass to server (optional) - * @param file file to upload (optional) - * @return ApiResponse - */ + * uploads an image + * + * @param petId ID of pet to update + * @param additionalMetadata Additional data to pass to server (optional) + * @param file file to upload (optional) + * @return ApiResponse + */ @Suppress("UNCHECKED_CAST") - suspend fun uploadFile(petId: kotlin.Long, additionalMetadata: kotlin.String?, file: io.ktor.client.request.forms.InputProvider?) : HttpResponse { + suspend fun uploadFile(petId: kotlin.Long, additionalMetadata: kotlin.String?, file: io.ktor.client.request.forms.InputProvider?): HttpResponse { val localVariableAuthNames = listOf("petstore_auth") @@ -319,7 +319,7 @@ private class FindPetsByTagsResponse(val value: List) { val localVariableConfig = RequestConfig( RequestMethod.POST, - "/pet/{petId}/uploadImage".replace("{"+"petId"+"}", "$petId"), + "/pet/{petId}/uploadImage".replace("{" + "petId" + "}", "$petId"), query = localVariableQuery, headers = localVariableHeaders ) @@ -333,15 +333,15 @@ private class FindPetsByTagsResponse(val value: List) { /** - * uploads an image (required) - * - * @param petId ID of pet to update - * @param requiredFile file to upload - * @param additionalMetadata Additional data to pass to server (optional) - * @return ApiResponse - */ + * uploads an image (required) + * + * @param petId ID of pet to update + * @param requiredFile file to upload + * @param additionalMetadata Additional data to pass to server (optional) + * @return ApiResponse + */ @Suppress("UNCHECKED_CAST") - suspend fun uploadFileWithRequiredFile(petId: kotlin.Long, requiredFile: io.ktor.client.request.forms.InputProvider, additionalMetadata: kotlin.String?) : HttpResponse { + suspend fun uploadFileWithRequiredFile(petId: kotlin.Long, requiredFile: io.ktor.client.request.forms.InputProvider, additionalMetadata: kotlin.String?): HttpResponse { val localVariableAuthNames = listOf("petstore_auth") @@ -357,7 +357,7 @@ private class FindPetsByTagsResponse(val value: List) { val localVariableConfig = RequestConfig( RequestMethod.POST, - "/fake/{petId}/uploadImageWithRequiredFile".replace("{"+"petId"+"}", "$petId"), + "/fake/{petId}/uploadImageWithRequiredFile".replace("{" + "petId" + "}", "$petId"), query = localVariableQuery, headers = localVariableHeaders ) diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/StoreApi.kt index 5085e5f42fd5..01211e213d19 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/StoreApi.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/StoreApi.kt @@ -25,25 +25,25 @@ import kotlinx.serialization.* import kotlinx.serialization.internal.StringDescriptor class StoreApi @UseExperimental(UnstableDefault::class) constructor( - baseUrl: kotlin.String = "http://petstore.swagger.io:80/v2", - httpClientEngine: HttpClientEngine? = null, - serializer: KotlinxSerializer) - : ApiClient(baseUrl, httpClientEngine, serializer) { + baseUrl: kotlin.String = "http://petstore.swagger.io:80/v2", + httpClientEngine: HttpClientEngine? = null, + serializer: KotlinxSerializer +) : ApiClient(baseUrl, httpClientEngine, serializer) { @UseExperimental(UnstableDefault::class) constructor( baseUrl: kotlin.String = "http://petstore.swagger.io:80/v2", httpClientEngine: HttpClientEngine? = null, - jsonConfiguration: JsonConfiguration = JsonConfiguration.Default) - : this(baseUrl, httpClientEngine, KotlinxSerializer(Json(jsonConfiguration))) + jsonConfiguration: JsonConfiguration = JsonConfiguration.Default + ) : this(baseUrl, httpClientEngine, KotlinxSerializer(Json(jsonConfiguration))) /** - * Delete purchase order by ID - * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors - * @param orderId ID of the order that needs to be deleted - * @return void - */ - suspend fun deleteOrder(orderId: kotlin.String) : HttpResponse { + * Delete purchase order by ID + * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors + * @param orderId ID of the order that needs to be deleted + * @return void + */ + suspend fun deleteOrder(orderId: kotlin.String): HttpResponse { val localVariableAuthNames = listOf() @@ -56,7 +56,7 @@ class StoreApi @UseExperimental(UnstableDefault::class) constructor( val localVariableConfig = RequestConfig( RequestMethod.DELETE, - "/store/order/{order_id}".replace("{"+"order_id"+"}", "$orderId"), + "/store/order/{order_id}".replace("{" + "order_id" + "}", "$orderId"), query = localVariableQuery, headers = localVariableHeaders ) @@ -70,12 +70,12 @@ class StoreApi @UseExperimental(UnstableDefault::class) constructor( /** - * Returns pet inventories by status - * Returns a map of status codes to quantities - * @return kotlin.collections.Map - */ + * Returns pet inventories by status + * Returns a map of status codes to quantities + * @return kotlin.collections.Map + */ @Suppress("UNCHECKED_CAST") - suspend fun getInventory() : HttpResponse> { + suspend fun getInventory(): HttpResponse> { val localVariableAuthNames = listOf("api_key") @@ -101,24 +101,24 @@ class StoreApi @UseExperimental(UnstableDefault::class) constructor( } @Serializable -private class GetInventoryResponse(val value: Map) { - @Serializer(GetInventoryResponse::class) - companion object : KSerializer { - private val serializer: KSerializer> = (kotlin.String.serializer() to kotlin.Int.serializer()).map - override val descriptor = StringDescriptor.withName("GetInventoryResponse") - override fun serialize(encoder: Encoder, obj: GetInventoryResponse) = serializer.serialize(encoder, obj.value) - override fun deserialize(decoder: Decoder) = GetInventoryResponse(serializer.deserialize(decoder)) + private class GetInventoryResponse(val value: Map) { + @Serializer(GetInventoryResponse::class) + companion object : KSerializer { + private val serializer: KSerializer> = (kotlin.String.serializer() to kotlin.Int.serializer()).map + override val descriptor = StringDescriptor.withName("GetInventoryResponse") + override fun serialize(encoder: Encoder, obj: GetInventoryResponse) = serializer.serialize(encoder, obj.value) + override fun deserialize(decoder: Decoder) = GetInventoryResponse(serializer.deserialize(decoder)) + } } -} /** - * Find purchase order by ID - * For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions - * @param orderId ID of pet that needs to be fetched - * @return Order - */ + * Find purchase order by ID + * For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions + * @param orderId ID of pet that needs to be fetched + * @return Order + */ @Suppress("UNCHECKED_CAST") - suspend fun getOrderById(orderId: kotlin.Long) : HttpResponse { + suspend fun getOrderById(orderId: kotlin.Long): HttpResponse { val localVariableAuthNames = listOf() @@ -131,7 +131,7 @@ private class GetInventoryResponse(val value: Map) { val localVariableConfig = RequestConfig( RequestMethod.GET, - "/store/order/{order_id}".replace("{"+"order_id"+"}", "$orderId"), + "/store/order/{order_id}".replace("{" + "order_id" + "}", "$orderId"), query = localVariableQuery, headers = localVariableHeaders ) @@ -145,13 +145,13 @@ private class GetInventoryResponse(val value: Map) { /** - * Place an order for a pet - * - * @param order order placed for purchasing the pet - * @return Order - */ + * Place an order for a pet + * + * @param order order placed for purchasing the pet + * @return Order + */ @Suppress("UNCHECKED_CAST") - suspend fun placeOrder(order: Order) : HttpResponse { + suspend fun placeOrder(order: Order): HttpResponse { val localVariableAuthNames = listOf() @@ -175,7 +175,7 @@ private class GetInventoryResponse(val value: Map) { ).wrap() } - + companion object { diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/UserApi.kt index 877dc28b2309..19bfb382876a 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/UserApi.kt @@ -25,25 +25,25 @@ import kotlinx.serialization.* import kotlinx.serialization.internal.StringDescriptor class UserApi @UseExperimental(UnstableDefault::class) constructor( - baseUrl: kotlin.String = "http://petstore.swagger.io:80/v2", - httpClientEngine: HttpClientEngine? = null, - serializer: KotlinxSerializer) - : ApiClient(baseUrl, httpClientEngine, serializer) { + baseUrl: kotlin.String = "http://petstore.swagger.io:80/v2", + httpClientEngine: HttpClientEngine? = null, + serializer: KotlinxSerializer +) : ApiClient(baseUrl, httpClientEngine, serializer) { @UseExperimental(UnstableDefault::class) constructor( baseUrl: kotlin.String = "http://petstore.swagger.io:80/v2", httpClientEngine: HttpClientEngine? = null, - jsonConfiguration: JsonConfiguration = JsonConfiguration.Default) - : this(baseUrl, httpClientEngine, KotlinxSerializer(Json(jsonConfiguration))) + jsonConfiguration: JsonConfiguration = JsonConfiguration.Default + ) : this(baseUrl, httpClientEngine, KotlinxSerializer(Json(jsonConfiguration))) /** - * Create user - * This can only be done by the logged in user. - * @param user Created user object - * @return void - */ - suspend fun createUser(user: User) : HttpResponse { + * Create user + * This can only be done by the logged in user. + * @param user Created user object + * @return void + */ + suspend fun createUser(user: User): HttpResponse { val localVariableAuthNames = listOf() @@ -67,19 +67,19 @@ class UserApi @UseExperimental(UnstableDefault::class) constructor( ).wrap() } - + /** - * Creates list of users with given input array - * - * @param user List of user object - * @return void - */ - suspend fun createUsersWithArrayInput(user: kotlin.Array) : HttpResponse { + * Creates list of users with given input array + * + * @param user List of user object + * @return void + */ + suspend fun createUsersWithArrayInput(user: kotlin.collections.List): HttpResponse { val localVariableAuthNames = listOf() - val localVariableBody = CreateUsersWithArrayInputRequest(user.asList()) + val localVariableBody = CreateUsersWithArrayInputRequest(user) val localVariableQuery = mutableMapOf>() @@ -100,27 +100,27 @@ class UserApi @UseExperimental(UnstableDefault::class) constructor( } @Serializable -private class CreateUsersWithArrayInputRequest(val value: List) { - @Serializer(CreateUsersWithArrayInputRequest::class) - companion object : KSerializer { - private val serializer: KSerializer> = User.serializer().list - override val descriptor = StringDescriptor.withName("CreateUsersWithArrayInputRequest") - override fun serialize(encoder: Encoder, obj: CreateUsersWithArrayInputRequest) = serializer.serialize(encoder, obj.value) - override fun deserialize(decoder: Decoder) = CreateUsersWithArrayInputRequest(serializer.deserialize(decoder)) + private class CreateUsersWithArrayInputRequest(val value: List) { + @Serializer(CreateUsersWithArrayInputRequest::class) + companion object : KSerializer { + private val serializer: KSerializer> = User.serializer().list + override val descriptor = StringDescriptor.withName("CreateUsersWithArrayInputRequest") + override fun serialize(encoder: Encoder, obj: CreateUsersWithArrayInputRequest) = serializer.serialize(encoder, obj.value) + override fun deserialize(decoder: Decoder) = CreateUsersWithArrayInputRequest(serializer.deserialize(decoder)) + } } -} /** - * Creates list of users with given input array - * - * @param user List of user object - * @return void - */ - suspend fun createUsersWithListInput(user: kotlin.Array) : HttpResponse { + * Creates list of users with given input array + * + * @param user List of user object + * @return void + */ + suspend fun createUsersWithListInput(user: kotlin.collections.List): HttpResponse { val localVariableAuthNames = listOf() - val localVariableBody = CreateUsersWithListInputRequest(user.asList()) + val localVariableBody = CreateUsersWithListInputRequest(user) val localVariableQuery = mutableMapOf>() @@ -141,23 +141,23 @@ private class CreateUsersWithArrayInputRequest(val value: List) { } @Serializable -private class CreateUsersWithListInputRequest(val value: List) { - @Serializer(CreateUsersWithListInputRequest::class) - companion object : KSerializer { - private val serializer: KSerializer> = User.serializer().list - override val descriptor = StringDescriptor.withName("CreateUsersWithListInputRequest") - override fun serialize(encoder: Encoder, obj: CreateUsersWithListInputRequest) = serializer.serialize(encoder, obj.value) - override fun deserialize(decoder: Decoder) = CreateUsersWithListInputRequest(serializer.deserialize(decoder)) + private class CreateUsersWithListInputRequest(val value: List) { + @Serializer(CreateUsersWithListInputRequest::class) + companion object : KSerializer { + private val serializer: KSerializer> = User.serializer().list + override val descriptor = StringDescriptor.withName("CreateUsersWithListInputRequest") + override fun serialize(encoder: Encoder, obj: CreateUsersWithListInputRequest) = serializer.serialize(encoder, obj.value) + override fun deserialize(decoder: Decoder) = CreateUsersWithListInputRequest(serializer.deserialize(decoder)) + } } -} /** - * Delete user - * This can only be done by the logged in user. - * @param username The name that needs to be deleted - * @return void - */ - suspend fun deleteUser(username: kotlin.String) : HttpResponse { + * Delete user + * This can only be done by the logged in user. + * @param username The name that needs to be deleted + * @return void + */ + suspend fun deleteUser(username: kotlin.String): HttpResponse { val localVariableAuthNames = listOf() @@ -170,7 +170,7 @@ private class CreateUsersWithListInputRequest(val value: List) { val localVariableConfig = RequestConfig( RequestMethod.DELETE, - "/user/{username}".replace("{"+"username"+"}", "$username"), + "/user/{username}".replace("{" + "username" + "}", "$username"), query = localVariableQuery, headers = localVariableHeaders ) @@ -184,13 +184,13 @@ private class CreateUsersWithListInputRequest(val value: List) { /** - * Get user by user name - * - * @param username The name that needs to be fetched. Use user1 for testing. - * @return User - */ + * Get user by user name + * + * @param username The name that needs to be fetched. Use user1 for testing. + * @return User + */ @Suppress("UNCHECKED_CAST") - suspend fun getUserByName(username: kotlin.String) : HttpResponse { + suspend fun getUserByName(username: kotlin.String): HttpResponse { val localVariableAuthNames = listOf() @@ -203,7 +203,7 @@ private class CreateUsersWithListInputRequest(val value: List) { val localVariableConfig = RequestConfig( RequestMethod.GET, - "/user/{username}".replace("{"+"username"+"}", "$username"), + "/user/{username}".replace("{" + "username" + "}", "$username"), query = localVariableQuery, headers = localVariableHeaders ) @@ -217,14 +217,14 @@ private class CreateUsersWithListInputRequest(val value: List) { /** - * Logs user into the system - * - * @param username The user name for login - * @param password The password for login in clear text - * @return kotlin.String - */ + * Logs user into the system + * + * @param username The user name for login + * @param password The password for login in clear text + * @return kotlin.String + */ @Suppress("UNCHECKED_CAST") - suspend fun loginUser(username: kotlin.String, password: kotlin.String) : HttpResponse { + suspend fun loginUser(username: kotlin.String, password: kotlin.String): HttpResponse { val localVariableAuthNames = listOf() @@ -253,11 +253,11 @@ private class CreateUsersWithListInputRequest(val value: List) { /** - * Logs out current logged in user session - * - * @return void - */ - suspend fun logoutUser() : HttpResponse { + * Logs out current logged in user session + * + * @return void + */ + suspend fun logoutUser(): HttpResponse { val localVariableAuthNames = listOf() @@ -284,13 +284,13 @@ private class CreateUsersWithListInputRequest(val value: List) { /** - * Updated user - * This can only be done by the logged in user. - * @param username name that need to be deleted - * @param user Updated user object - * @return void - */ - suspend fun updateUser(username: kotlin.String, user: User) : HttpResponse { + * Updated user + * This can only be done by the logged in user. + * @param username name that need to be deleted + * @param user Updated user object + * @return void + */ + suspend fun updateUser(username: kotlin.String, user: User): HttpResponse { val localVariableAuthNames = listOf() @@ -302,7 +302,7 @@ private class CreateUsersWithListInputRequest(val value: List) { val localVariableConfig = RequestConfig( RequestMethod.PUT, - "/user/{username}".replace("{"+"username"+"}", "$username"), + "/user/{username}".replace("{" + "username" + "}", "$username"), query = localVariableQuery, headers = localVariableHeaders ) @@ -314,7 +314,7 @@ private class CreateUsersWithListInputRequest(val value: List) { ).wrap() } - + companion object { diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt index ecc2051d2c70..2db48aefd067 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param mapProperty diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Animal.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Animal.kt index 9fe4ece02dd5..6be77ea17679 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Animal.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Animal.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param className diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ApiResponse.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ApiResponse.kt index 805244a3762e..bdbd6d53470a 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ApiResponse.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ApiResponse.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param code diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt index 587082fae3d0..b21afdde1ef9 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt @@ -14,12 +14,13 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param arrayArrayNumber */ @Serializable data class ArrayOfArrayOfNumberOnly ( - @SerialName(value = "ArrayArrayNumber") val arrayArrayNumber: kotlin.Array>? = null + @SerialName(value = "ArrayArrayNumber") val arrayArrayNumber: kotlin.collections.List>? = null ) diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt index 205c7e725e26..cee5642e8b30 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt @@ -14,12 +14,13 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param arrayNumber */ @Serializable data class ArrayOfNumberOnly ( - @SerialName(value = "ArrayNumber") val arrayNumber: kotlin.Array? = null + @SerialName(value = "ArrayNumber") val arrayNumber: kotlin.collections.List? = null ) diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ArrayTest.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ArrayTest.kt index e4d9e1040627..b5abe733d032 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ArrayTest.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ArrayTest.kt @@ -15,6 +15,7 @@ import org.openapitools.client.models.ReadOnlyFirst import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param arrayOfString @@ -23,8 +24,8 @@ import kotlinx.serialization.internal.CommonEnumSerializer */ @Serializable data class ArrayTest ( - @SerialName(value = "array_of_string") val arrayOfString: kotlin.Array? = null, - @SerialName(value = "array_array_of_integer") val arrayArrayOfInteger: kotlin.Array>? = null, - @SerialName(value = "array_array_of_model") val arrayArrayOfModel: kotlin.Array>? = null + @SerialName(value = "array_of_string") val arrayOfString: kotlin.collections.List? = null, + @SerialName(value = "array_array_of_integer") val arrayArrayOfInteger: kotlin.collections.List>? = null, + @SerialName(value = "array_array_of_model") val arrayArrayOfModel: kotlin.collections.List>? = null ) diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Capitalization.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Capitalization.kt index e960d48879e7..91c96776a83b 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Capitalization.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Capitalization.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param smallCamel diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Cat.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Cat.kt index 42c192b93028..fc81b666b9ca 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Cat.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Cat.kt @@ -16,6 +16,7 @@ import org.openapitools.client.models.CatAllOf import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param className diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/CatAllOf.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/CatAllOf.kt index d7a72badbcdf..0288fffacfad 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/CatAllOf.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/CatAllOf.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param declawed diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Category.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Category.kt index 6fb58ac646ed..bf0ff1dde78d 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Category.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param name diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ClassModel.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ClassModel.kt index c4ea808d23a5..04f41b9abc09 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ClassModel.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ClassModel.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * Model for testing model with \"_class\" property * @param propertyClass diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Client.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Client.kt index 30d316bd7064..4d47536b0205 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Client.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Client.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param client diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Dog.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Dog.kt index 360f985d7553..74600f309afd 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Dog.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Dog.kt @@ -16,6 +16,7 @@ import org.openapitools.client.models.DogAllOf import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param className diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/DogAllOf.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/DogAllOf.kt index 6e18a5729e29..5371db58c816 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/DogAllOf.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/DogAllOf.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param breed diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/EnumArrays.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/EnumArrays.kt index b9598fb80a56..aa8cea194b12 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/EnumArrays.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/EnumArrays.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param justSymbol @@ -22,7 +23,7 @@ import kotlinx.serialization.internal.CommonEnumSerializer @Serializable data class EnumArrays ( @SerialName(value = "just_symbol") val justSymbol: EnumArrays.JustSymbol? = null, - @SerialName(value = "array_enum") val arrayEnum: kotlin.Array? = null + @SerialName(value = "array_enum") val arrayEnum: kotlin.collections.List? = null ) { /** diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/EnumTest.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/EnumTest.kt index 4f1a77e06b94..71b096a97c12 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/EnumTest.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/EnumTest.kt @@ -18,6 +18,7 @@ import org.openapitools.client.models.OuterEnumIntegerDefaultValue import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param enumStringRequired diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt index 4d09277f9537..eb03badda55e 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param file @@ -22,6 +23,6 @@ import kotlinx.serialization.internal.CommonEnumSerializer @Serializable data class FileSchemaTestClass ( @SerialName(value = "file") val file: org.openapitools.client.infrastructure.OctetByteArray? = null, - @SerialName(value = "files") val files: kotlin.Array? = null + @SerialName(value = "files") val files: kotlin.collections.List? = null ) diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Foo.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Foo.kt index f208e3add1d1..0b74ad63fa12 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Foo.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Foo.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param bar diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/FormatTest.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/FormatTest.kt index 1d87f25126d8..ed2e0e2eec2a 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/FormatTest.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/FormatTest.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param number diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt index 617c8a98b847..fc6f88a3ae3c 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param bar diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/HealthCheckResult.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/HealthCheckResult.kt index 6524d535ce07..0c8d7249bfbc 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/HealthCheckResult.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/HealthCheckResult.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. * @param nullableMessage diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineObject.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineObject.kt index 787f859549fa..989a2484297f 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineObject.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineObject.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param name Updated name of the pet diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineObject1.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineObject1.kt index bf299be4274e..dfaee54885f9 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineObject1.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineObject1.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param additionalMetadata Additional data to pass to server diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineObject2.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineObject2.kt index 2f9e4da97844..c6f2537a9e5c 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineObject2.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineObject2.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param enumFormStringArray Form parameter enum test (string array) @@ -22,7 +23,7 @@ import kotlinx.serialization.internal.CommonEnumSerializer @Serializable data class InlineObject2 ( /* Form parameter enum test (string array) */ - @SerialName(value = "enum_form_string_array") val enumFormStringArray: kotlin.Array? = null, + @SerialName(value = "enum_form_string_array") val enumFormStringArray: kotlin.collections.List? = null, /* Form parameter enum test (string) */ @SerialName(value = "enum_form_string") val enumFormString: InlineObject2.EnumFormString? = null ) { diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineObject3.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineObject3.kt index 62e5c16b0900..7cf9dba5f63b 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineObject3.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineObject3.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param number None diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineObject4.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineObject4.kt index 4a1f2f2ecc5e..c159a9034213 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineObject4.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineObject4.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param param field1 diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineObject5.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineObject5.kt index d7a7bd0ecce6..c9bde5554265 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineObject5.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineObject5.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param requiredFile file to upload diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineResponseDefault.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineResponseDefault.kt index 425640579467..932be6a35876 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineResponseDefault.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/InlineResponseDefault.kt @@ -15,6 +15,7 @@ import org.openapitools.client.models.Foo import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param string diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/List.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/List.kt index 2768b1935d41..f68a4dc3a860 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/List.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/List.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param `123minusList` diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/MapTest.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/MapTest.kt index eff239dcfb33..e67dc09a8f61 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/MapTest.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/MapTest.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param mapMapOfString diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt index 73b632b52a6a..aa8526964755 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt @@ -15,6 +15,7 @@ import org.openapitools.client.models.Animal import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param uuid diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Model200Response.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Model200Response.kt index 719b2bd7d25b..425a26f41204 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Model200Response.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Model200Response.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * Model for testing model name starting with number * @param name diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Name.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Name.kt index e010f6a7028f..906deaf6c1f5 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Name.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Name.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * Model for testing model name same as property name * @param name diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/NullableClass.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/NullableClass.kt index e535a63ead03..b83807484c34 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/NullableClass.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/NullableClass.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param integerProp @@ -37,9 +38,9 @@ data class NullableClass ( @SerialName(value = "string_prop") val stringProp: kotlin.String? = null, @SerialName(value = "date_prop") val dateProp: kotlin.String? = null, @SerialName(value = "datetime_prop") val datetimeProp: kotlin.String? = null, - @SerialName(value = "array_nullable_prop") val arrayNullableProp: kotlin.Array? = null, - @SerialName(value = "array_and_items_nullable_prop") val arrayAndItemsNullableProp: kotlin.Array? = null, - @SerialName(value = "array_items_nullable") val arrayItemsNullable: kotlin.Array? = null, + @SerialName(value = "array_nullable_prop") val arrayNullableProp: kotlin.collections.List? = null, + @SerialName(value = "array_and_items_nullable_prop") val arrayAndItemsNullableProp: kotlin.collections.List? = null, + @SerialName(value = "array_items_nullable") val arrayItemsNullable: kotlin.collections.List? = null, @SerialName(value = "object_nullable_prop") val objectNullableProp: kotlin.collections.Map? = null, @SerialName(value = "object_and_items_nullable_prop") val objectAndItemsNullableProp: kotlin.collections.Map? = null, @SerialName(value = "object_items_nullable") val objectItemsNullable: kotlin.collections.Map? = null diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/NumberOnly.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/NumberOnly.kt index 28a3ce64289e..0964c45b23a8 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/NumberOnly.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/NumberOnly.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param justNumber diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Order.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Order.kt index 166b38626821..56780551ee23 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Order.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param id diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/OuterComposite.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/OuterComposite.kt index ab7d6bf2a6f4..8e99326263c5 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/OuterComposite.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/OuterComposite.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param myNumber diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Pet.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Pet.kt index 46c476209ad3..525283182c39 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Pet.kt @@ -16,6 +16,7 @@ import org.openapitools.client.models.Tag import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param name @@ -28,10 +29,10 @@ import kotlinx.serialization.internal.CommonEnumSerializer @Serializable data class Pet ( @SerialName(value = "name") @Required val name: kotlin.String, - @SerialName(value = "photoUrls") @Required val photoUrls: kotlin.Array, + @SerialName(value = "photoUrls") @Required val photoUrls: kotlin.collections.List, @SerialName(value = "id") val id: kotlin.Long? = null, @SerialName(value = "category") val category: Category? = null, - @SerialName(value = "tags") val tags: kotlin.Array? = null, + @SerialName(value = "tags") val tags: kotlin.collections.List? = null, /* pet status in the store */ @SerialName(value = "status") val status: Pet.Status? = null ) { diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt index 4d99ea7a9a2c..15564cf9a76d 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param bar diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Return.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Return.kt index c4e80831628b..b288affae4c7 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Return.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Return.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * Model for testing reserved words * @param `return` diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/SpecialModelname.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/SpecialModelname.kt index 20dd7ada2799..7a8c1c83c8b8 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/SpecialModelname.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/SpecialModelname.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Tag.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Tag.kt index 0b3f202ad517..98d6e611801a 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Tag.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param id diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/User.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/User.kt index 47ad0a9f2829..d4b6129336ef 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/User.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/User.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import kotlinx.serialization.* import kotlinx.serialization.internal.CommonEnumSerializer + /** * * @param id diff --git a/samples/openapi3/client/petstore/kotlin/docs/ArrayOfArrayOfNumberOnly.md b/samples/openapi3/client/petstore/kotlin/docs/ArrayOfArrayOfNumberOnly.md index 23a475664205..bcc306caeb6d 100644 --- a/samples/openapi3/client/petstore/kotlin/docs/ArrayOfArrayOfNumberOnly.md +++ b/samples/openapi3/client/petstore/kotlin/docs/ArrayOfArrayOfNumberOnly.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arrayArrayNumber** | **kotlin.Array<kotlin.Array<java.math.BigDecimal>>** | | [optional] +**arrayArrayNumber** | **kotlin.collections.List<kotlin.collections.List<java.math.BigDecimal>>** | | [optional] diff --git a/samples/openapi3/client/petstore/kotlin/docs/ArrayOfNumberOnly.md b/samples/openapi3/client/petstore/kotlin/docs/ArrayOfNumberOnly.md index b115a5d54c22..00c57a7885e8 100644 --- a/samples/openapi3/client/petstore/kotlin/docs/ArrayOfNumberOnly.md +++ b/samples/openapi3/client/petstore/kotlin/docs/ArrayOfNumberOnly.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arrayNumber** | [**kotlin.Array<java.math.BigDecimal>**](java.math.BigDecimal.md) | | [optional] +**arrayNumber** | [**kotlin.collections.List<java.math.BigDecimal>**](java.math.BigDecimal.md) | | [optional] diff --git a/samples/openapi3/client/petstore/kotlin/docs/ArrayTest.md b/samples/openapi3/client/petstore/kotlin/docs/ArrayTest.md index aa0bbbe936c1..45e59c8fe77c 100644 --- a/samples/openapi3/client/petstore/kotlin/docs/ArrayTest.md +++ b/samples/openapi3/client/petstore/kotlin/docs/ArrayTest.md @@ -4,9 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arrayOfString** | **kotlin.Array<kotlin.String>** | | [optional] -**arrayArrayOfInteger** | **kotlin.Array<kotlin.Array<kotlin.Long>>** | | [optional] -**arrayArrayOfModel** | **kotlin.Array<kotlin.Array<ReadOnlyFirst>>** | | [optional] +**arrayOfString** | **kotlin.collections.List<kotlin.String>** | | [optional] +**arrayArrayOfInteger** | **kotlin.collections.List<kotlin.collections.List<kotlin.Long>>** | | [optional] +**arrayArrayOfModel** | **kotlin.collections.List<kotlin.collections.List<ReadOnlyFirst>>** | | [optional] diff --git a/samples/openapi3/client/petstore/kotlin/docs/EnumArrays.md b/samples/openapi3/client/petstore/kotlin/docs/EnumArrays.md index 719084e5f949..c3c5e235bfed 100644 --- a/samples/openapi3/client/petstore/kotlin/docs/EnumArrays.md +++ b/samples/openapi3/client/petstore/kotlin/docs/EnumArrays.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **justSymbol** | [**inline**](#JustSymbolEnum) | | [optional] -**arrayEnum** | [**inline**](#kotlin.Array<ArrayEnumEnum>) | | [optional] +**arrayEnum** | [**inline**](#kotlin.collections.List<ArrayEnumEnum>) | | [optional] @@ -15,7 +15,7 @@ Name | Value justSymbol | >=, $ - + ## Enum: array_enum Name | Value ---- | ----- diff --git a/samples/openapi3/client/petstore/kotlin/docs/FakeApi.md b/samples/openapi3/client/petstore/kotlin/docs/FakeApi.md index 0a28947aa843..40ca579b51b4 100644 --- a/samples/openapi3/client/petstore/kotlin/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/kotlin/docs/FakeApi.md @@ -527,13 +527,13 @@ To test enum parameters //import org.openapitools.client.models.* val apiInstance = FakeApi() -val enumHeaderStringArray : kotlin.Array = // kotlin.Array | Header parameter enum test (string array) +val enumHeaderStringArray : kotlin.collections.List = // kotlin.collections.List | Header parameter enum test (string array) val enumHeaderString : kotlin.String = enumHeaderString_example // kotlin.String | Header parameter enum test (string) -val enumQueryStringArray : kotlin.Array = // kotlin.Array | Query parameter enum test (string array) +val enumQueryStringArray : kotlin.collections.List = // kotlin.collections.List | Query parameter enum test (string array) val enumQueryString : kotlin.String = enumQueryString_example // kotlin.String | Query parameter enum test (string) val enumQueryInteger : kotlin.Int = 56 // kotlin.Int | Query parameter enum test (double) val enumQueryDouble : kotlin.Double = 1.2 // kotlin.Double | Query parameter enum test (double) -val enumFormStringArray : kotlin.Array = enumFormStringArray_example // kotlin.Array | Form parameter enum test (string array) +val enumFormStringArray : kotlin.collections.List = enumFormStringArray_example // kotlin.collections.List | Form parameter enum test (string array) val enumFormString : kotlin.String = enumFormString_example // kotlin.String | Form parameter enum test (string) try { apiInstance.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString) @@ -550,13 +550,13 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **enumHeaderStringArray** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Header parameter enum test (string array) | [optional] [enum: >, $] + **enumHeaderStringArray** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Header parameter enum test (string array) | [optional] [enum: >, $] **enumHeaderString** | **kotlin.String**| Header parameter enum test (string) | [optional] [default to "-efg"] [enum: _abc, -efg, (xyz)] - **enumQueryStringArray** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] + **enumQueryStringArray** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] **enumQueryString** | **kotlin.String**| Query parameter enum test (string) | [optional] [default to "-efg"] [enum: _abc, -efg, (xyz)] **enumQueryInteger** | **kotlin.Int**| Query parameter enum test (double) | [optional] [enum: 1, -2] **enumQueryDouble** | **kotlin.Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] - **enumFormStringArray** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Form parameter enum test (string array) | [optional] [default to "$"] [enum: >, $] + **enumFormStringArray** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Form parameter enum test (string array) | [optional] [default to "$"] [enum: >, $] **enumFormString** | **kotlin.String**| Form parameter enum test (string) | [optional] [default to "-efg"] [enum: _abc, -efg, (xyz)] ### Return type @@ -735,11 +735,11 @@ To test the collection format in query parameters //import org.openapitools.client.models.* val apiInstance = FakeApi() -val pipe : kotlin.Array = // kotlin.Array | -val ioutil : kotlin.Array = // kotlin.Array | -val http : kotlin.Array = // kotlin.Array | -val url : kotlin.Array = // kotlin.Array | -val context : kotlin.Array = // kotlin.Array | +val pipe : kotlin.collections.List = // kotlin.collections.List | +val ioutil : kotlin.collections.List = // kotlin.collections.List | +val http : kotlin.collections.List = // kotlin.collections.List | +val url : kotlin.collections.List = // kotlin.collections.List | +val context : kotlin.collections.List = // kotlin.collections.List | try { apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context) } catch (e: ClientException) { @@ -755,11 +755,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pipe** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| | - **ioutil** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| | - **http** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| | - **url** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| | - **context** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| | + **pipe** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| | + **ioutil** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| | + **http** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| | + **url** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| | + **context** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| | ### Return type diff --git a/samples/openapi3/client/petstore/kotlin/docs/FileSchemaTestClass.md b/samples/openapi3/client/petstore/kotlin/docs/FileSchemaTestClass.md index 089e61862c2a..e5512f82f6f6 100644 --- a/samples/openapi3/client/petstore/kotlin/docs/FileSchemaTestClass.md +++ b/samples/openapi3/client/petstore/kotlin/docs/FileSchemaTestClass.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **file** | [**java.io.File**](java.io.File.md) | | [optional] -**files** | [**kotlin.Array<java.io.File>**](java.io.File.md) | | [optional] +**files** | [**kotlin.collections.List<java.io.File>**](java.io.File.md) | | [optional] diff --git a/samples/openapi3/client/petstore/kotlin/docs/InlineObject2.md b/samples/openapi3/client/petstore/kotlin/docs/InlineObject2.md index 0720925918bf..a98ffe031b3d 100644 --- a/samples/openapi3/client/petstore/kotlin/docs/InlineObject2.md +++ b/samples/openapi3/client/petstore/kotlin/docs/InlineObject2.md @@ -4,11 +4,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**enumFormStringArray** | [**inline**](#kotlin.Array<EnumFormStringArrayEnum>) | Form parameter enum test (string array) | [optional] +**enumFormStringArray** | [**inline**](#kotlin.collections.List<EnumFormStringArrayEnum>) | Form parameter enum test (string array) | [optional] **enumFormString** | [**inline**](#EnumFormStringEnum) | Form parameter enum test (string) | [optional] - + ## Enum: enum_form_string_array Name | Value ---- | ----- diff --git a/samples/openapi3/client/petstore/kotlin/docs/NullableClass.md b/samples/openapi3/client/petstore/kotlin/docs/NullableClass.md index 9ec43d0b87c6..335943c01eae 100644 --- a/samples/openapi3/client/petstore/kotlin/docs/NullableClass.md +++ b/samples/openapi3/client/petstore/kotlin/docs/NullableClass.md @@ -10,9 +10,9 @@ Name | Type | Description | Notes **stringProp** | **kotlin.String** | | [optional] **dateProp** | [**java.time.LocalDate**](java.time.LocalDate.md) | | [optional] **datetimeProp** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | | [optional] -**arrayNullableProp** | [**kotlin.Array<kotlin.Any>**](kotlin.Any.md) | | [optional] -**arrayAndItemsNullableProp** | [**kotlin.Array<kotlin.Any>**](kotlin.Any.md) | | [optional] -**arrayItemsNullable** | [**kotlin.Array<kotlin.Any>**](kotlin.Any.md) | | [optional] +**arrayNullableProp** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | | [optional] +**arrayAndItemsNullableProp** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | | [optional] +**arrayItemsNullable** | [**kotlin.collections.List<kotlin.Any>**](kotlin.Any.md) | | [optional] **objectNullableProp** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] **objectAndItemsNullableProp** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] **objectItemsNullable** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | [optional] diff --git a/samples/openapi3/client/petstore/kotlin/docs/Pet.md b/samples/openapi3/client/petstore/kotlin/docs/Pet.md index 70c340005d16..c82844b5ee80 100644 --- a/samples/openapi3/client/petstore/kotlin/docs/Pet.md +++ b/samples/openapi3/client/petstore/kotlin/docs/Pet.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **kotlin.String** | | -**photoUrls** | **kotlin.Array<kotlin.String>** | | +**photoUrls** | **kotlin.collections.List<kotlin.String>** | | **id** | **kotlin.Long** | | [optional] **category** | [**Category**](Category.md) | | [optional] -**tags** | [**kotlin.Array<Tag>**](Tag.md) | | [optional] +**tags** | [**kotlin.collections.List<Tag>**](Tag.md) | | [optional] **status** | [**inline**](#StatusEnum) | pet status in the store | [optional] diff --git a/samples/openapi3/client/petstore/kotlin/docs/PetApi.md b/samples/openapi3/client/petstore/kotlin/docs/PetApi.md index 576d2f04ca85..9987ca87a857 100644 --- a/samples/openapi3/client/petstore/kotlin/docs/PetApi.md +++ b/samples/openapi3/client/petstore/kotlin/docs/PetApi.md @@ -111,7 +111,7 @@ Configure petstore_auth: # **findPetsByStatus** -> kotlin.Array<Pet> findPetsByStatus(status) +> kotlin.collections.List<Pet> findPetsByStatus(status) Finds Pets by status @@ -124,9 +124,9 @@ Multiple status values can be provided with comma separated strings //import org.openapitools.client.models.* val apiInstance = PetApi() -val status : kotlin.Array = // kotlin.Array | Status values that need to be considered for filter +val status : kotlin.collections.List = // kotlin.collections.List | Status values that need to be considered for filter try { - val result : kotlin.Array = apiInstance.findPetsByStatus(status) + val result : kotlin.collections.List = apiInstance.findPetsByStatus(status) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByStatus") @@ -141,11 +141,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] + **status** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization @@ -160,7 +160,7 @@ Configure petstore_auth: # **findPetsByTags** -> kotlin.Array<Pet> findPetsByTags(tags) +> kotlin.collections.List<Pet> findPetsByTags(tags) Finds Pets by tags @@ -173,9 +173,9 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 //import org.openapitools.client.models.* val apiInstance = PetApi() -val tags : kotlin.Array = // kotlin.Array | Tags to filter by +val tags : kotlin.collections.List = // kotlin.collections.List | Tags to filter by try { - val result : kotlin.Array = apiInstance.findPetsByTags(tags) + val result : kotlin.collections.List = apiInstance.findPetsByTags(tags) println(result) } catch (e: ClientException) { println("4xx response calling PetApi#findPetsByTags") @@ -190,11 +190,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tags** | [**kotlin.Array<kotlin.String>**](kotlin.String.md)| Tags to filter by | + **tags** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| Tags to filter by | ### Return type -[**kotlin.Array<Pet>**](Pet.md) +[**kotlin.collections.List<Pet>**](Pet.md) ### Authorization diff --git a/samples/openapi3/client/petstore/kotlin/docs/UserApi.md b/samples/openapi3/client/petstore/kotlin/docs/UserApi.md index dbf78e81eb22..543cbee5a390 100644 --- a/samples/openapi3/client/petstore/kotlin/docs/UserApi.md +++ b/samples/openapi3/client/petstore/kotlin/docs/UserApi.md @@ -73,7 +73,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val user : kotlin.Array = // kotlin.Array | List of user object +val user : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithArrayInput(user) } catch (e: ClientException) { @@ -89,7 +89,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**kotlin.Array<User>**](User.md)| List of user object | + **user** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type @@ -117,7 +117,7 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val user : kotlin.Array = // kotlin.Array | List of user object +val user : kotlin.collections.List = // kotlin.collections.List | List of user object try { apiInstance.createUsersWithListInput(user) } catch (e: ClientException) { @@ -133,7 +133,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**kotlin.Array<User>**](User.md)| List of user object | + **user** | [**kotlin.collections.List<User>**](User.md)| List of user object | ### Return type diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt index f79f92289830..647272f7e2b2 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt @@ -484,7 +484,7 @@ class FakeApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun testEnumParameters(enumHeaderStringArray: kotlin.Array?, enumHeaderString: kotlin.String?, enumQueryStringArray: kotlin.Array?, enumQueryString: kotlin.String?, enumQueryInteger: kotlin.Int?, enumQueryDouble: kotlin.Double?, enumFormStringArray: kotlin.Array?, enumFormString: kotlin.String?) : Unit { + fun testEnumParameters(enumHeaderStringArray: kotlin.collections.List?, enumHeaderString: kotlin.String?, enumQueryStringArray: kotlin.collections.List?, enumQueryString: kotlin.String?, enumQueryInteger: kotlin.Int?, enumQueryDouble: kotlin.Double?, enumFormStringArray: kotlin.collections.List?, enumFormString: kotlin.String?) : Unit { val localVariableBody: kotlin.Any? = mapOf("enum_form_string_array" to enumFormStringArray, "enum_form_string" to enumFormString) val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -678,7 +678,7 @@ class FakeApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun testQueryParameterCollectionFormat(pipe: kotlin.Array, ioutil: kotlin.Array, http: kotlin.Array, url: kotlin.Array, context: kotlin.Array) : Unit { + fun testQueryParameterCollectionFormat(pipe: kotlin.collections.List, ioutil: kotlin.collections.List, http: kotlin.collections.List, url: kotlin.collections.List, context: kotlin.collections.List) : Unit { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index 67d7955bb935..8dd12cf26ab5 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -119,14 +119,14 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * Finds Pets by status * Multiple status values can be provided with comma separated strings * @param status Status values that need to be considered for filter - * @return kotlin.Array + * @return kotlin.collections.List * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response * @throws ServerException If the API returns a server error response */ @Suppress("UNCHECKED_CAST") @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun findPetsByStatus(status: kotlin.Array) : kotlin.Array { + fun findPetsByStatus(status: kotlin.collections.List) : kotlin.collections.List { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -139,13 +139,13 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { query = localVariableQuery, headers = localVariableHeaders ) - val localVarResponse = request>( + val localVarResponse = request>( localVariableConfig, localVariableBody ) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.Array + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { @@ -163,7 +163,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * Finds Pets by tags * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. * @param tags Tags to filter by - * @return kotlin.Array + * @return kotlin.collections.List * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response * @throws ServerException If the API returns a server error response @@ -171,7 +171,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { @Suppress("UNCHECKED_CAST") @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) @Deprecated(message = "This operation is deprecated.") - fun findPetsByTags(tags: kotlin.Array) : kotlin.Array { + fun findPetsByTags(tags: kotlin.collections.List) : kotlin.collections.List { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -184,13 +184,13 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { query = localVariableQuery, headers = localVariableHeaders ) - val localVarResponse = request>( + val localVarResponse = request>( localVariableConfig, localVariableBody ) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.Array + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index 6e05b135cd3d..1ed6f6bc16b3 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -83,7 +83,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun createUsersWithArrayInput(user: kotlin.Array) : Unit { + fun createUsersWithArrayInput(user: kotlin.collections.List) : Unit { val localVariableBody: kotlin.Any? = user val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() @@ -123,7 +123,7 @@ class UserApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * @throws ServerException If the API returns a server error response */ @Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun createUsersWithListInput(user: kotlin.Array) : Unit { + fun createUsersWithListInput(user: kotlin.collections.List) : Unit { val localVariableBody: kotlin.Any? = user val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt index 42e82f668073..e481b1a34243 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param mapProperty diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Animal.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Animal.kt index 71c88c15c35f..8ce8fccc6fea 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Animal.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Animal.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param className diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt index d6922e4d96c1..b6c0603d50e7 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ApiResponse.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param code diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt index 0b15c44c4cee..7e4228001541 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param arrayArrayNumber @@ -21,7 +22,7 @@ import java.io.Serializable data class ArrayOfArrayOfNumberOnly ( @Json(name = "ArrayArrayNumber") - val arrayArrayNumber: kotlin.Array>? = null + val arrayArrayNumber: kotlin.collections.List>? = null ) : Serializable { companion object { private const val serialVersionUID: Long = 123 diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt index 64257ddc92c4..f2da9373e835 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param arrayNumber @@ -21,7 +22,7 @@ import java.io.Serializable data class ArrayOfNumberOnly ( @Json(name = "ArrayNumber") - val arrayNumber: kotlin.Array? = null + val arrayNumber: kotlin.collections.List? = null ) : Serializable { companion object { private const val serialVersionUID: Long = 123 diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ArrayTest.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ArrayTest.kt index 22441aba388b..a2e6e72c2c7c 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ArrayTest.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ArrayTest.kt @@ -15,6 +15,7 @@ import org.openapitools.client.models.ReadOnlyFirst import com.squareup.moshi.Json import java.io.Serializable + /** * * @param arrayOfString @@ -24,11 +25,11 @@ import java.io.Serializable data class ArrayTest ( @Json(name = "array_of_string") - val arrayOfString: kotlin.Array? = null, + val arrayOfString: kotlin.collections.List? = null, @Json(name = "array_array_of_integer") - val arrayArrayOfInteger: kotlin.Array>? = null, + val arrayArrayOfInteger: kotlin.collections.List>? = null, @Json(name = "array_array_of_model") - val arrayArrayOfModel: kotlin.Array>? = null + val arrayArrayOfModel: kotlin.collections.List>? = null ) : Serializable { companion object { private const val serialVersionUID: Long = 123 diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Capitalization.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Capitalization.kt index 2e321905c3fd..3a549ed7917a 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Capitalization.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Capitalization.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param smallCamel diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Cat.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Cat.kt index 0d3fc6381c9c..2de64da9e1a9 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Cat.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Cat.kt @@ -16,6 +16,7 @@ import org.openapitools.client.models.CatAllOf import com.squareup.moshi.Json import java.io.Serializable + /** * * @param className diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/CatAllOf.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/CatAllOf.kt index 7fec650f4bb9..d102b00d5be6 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/CatAllOf.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/CatAllOf.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param declawed diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Category.kt index 055ac892492c..b7c8249e3785 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param name diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ClassModel.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ClassModel.kt index 919da5f0f487..82f273940446 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ClassModel.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ClassModel.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * Model for testing model with \"_class\" property * @param propertyClass diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Client.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Client.kt index b766f9ba9f23..f6efaab5fe82 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Client.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Client.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param client diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Dog.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Dog.kt index 2e842529c4fc..58bf1dbfa4b6 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Dog.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Dog.kt @@ -16,6 +16,7 @@ import org.openapitools.client.models.DogAllOf import com.squareup.moshi.Json import java.io.Serializable + /** * * @param className diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/DogAllOf.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/DogAllOf.kt index 7f0059863271..2ae7ee8d6fec 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/DogAllOf.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/DogAllOf.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param breed diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/EnumArrays.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/EnumArrays.kt index f4e145b600bc..53dd0b396ae2 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/EnumArrays.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/EnumArrays.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param justSymbol @@ -24,7 +25,7 @@ data class EnumArrays ( @Json(name = "just_symbol") val justSymbol: EnumArrays.JustSymbol? = null, @Json(name = "array_enum") - val arrayEnum: kotlin.Array? = null + val arrayEnum: kotlin.collections.List? = null ) : Serializable { companion object { private const val serialVersionUID: Long = 123 diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/EnumTest.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/EnumTest.kt index 346cc493053b..25dc81a7e7f3 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/EnumTest.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/EnumTest.kt @@ -18,6 +18,7 @@ import org.openapitools.client.models.OuterEnumIntegerDefaultValue import com.squareup.moshi.Json import java.io.Serializable + /** * * @param enumStringRequired diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt index ae3a0c55ac25..b6f4bc5e334a 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param file @@ -24,7 +25,7 @@ data class FileSchemaTestClass ( @Json(name = "file") val file: java.io.File? = null, @Json(name = "files") - val files: kotlin.Array? = null + val files: kotlin.collections.List? = null ) : Serializable { companion object { private const val serialVersionUID: Long = 123 diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Foo.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Foo.kt index d103385d685c..e0870d3f50bf 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Foo.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Foo.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param bar diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/FormatTest.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/FormatTest.kt index 3ef83ab19cba..5a1fec435b1b 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/FormatTest.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/FormatTest.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param number diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt index 807b7c846fb0..b746c64caa41 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param bar diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt index 4dde950bd728..a9c8db3f0280 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. * @param nullableMessage diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineObject.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineObject.kt index 33175a232f63..24c22839016d 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineObject.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineObject.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param name Updated name of the pet diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineObject1.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineObject1.kt index 7fd9544b7819..c951ce2581ea 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineObject1.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineObject1.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param additionalMetadata Additional data to pass to server diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineObject2.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineObject2.kt index d0c9b5b7160e..8ab853cf337d 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineObject2.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineObject2.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param enumFormStringArray Form parameter enum test (string array) @@ -23,7 +24,7 @@ import java.io.Serializable data class InlineObject2 ( /* Form parameter enum test (string array) */ @Json(name = "enum_form_string_array") - val enumFormStringArray: kotlin.Array? = null, + val enumFormStringArray: kotlin.collections.List? = null, /* Form parameter enum test (string) */ @Json(name = "enum_form_string") val enumFormString: InlineObject2.EnumFormString? = null diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineObject3.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineObject3.kt index 62bd57318c5c..594c4519bcd8 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineObject3.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineObject3.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param number None diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineObject4.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineObject4.kt index d08e4105f848..88b4644d398a 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineObject4.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineObject4.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param param field1 diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineObject5.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineObject5.kt index cd06eb38092c..d1d796b023ab 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineObject5.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineObject5.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param requiredFile file to upload diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt index 2284790d4220..221f9f0641ba 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt @@ -15,6 +15,7 @@ import org.openapitools.client.models.Foo import com.squareup.moshi.Json import java.io.Serializable + /** * * @param string diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/List.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/List.kt index c93bd427bf25..f16cdddc8c7d 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/List.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/List.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param `123minusList` diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/MapTest.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/MapTest.kt index 960045349b31..c5eb455d5a10 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/MapTest.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/MapTest.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param mapMapOfString diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt index 974cc9290412..70e60cd60497 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt @@ -15,6 +15,7 @@ import org.openapitools.client.models.Animal import com.squareup.moshi.Json import java.io.Serializable + /** * * @param uuid diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Model200Response.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Model200Response.kt index c2773adff524..887f220608da 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Model200Response.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Model200Response.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * Model for testing model name starting with number * @param name diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Name.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Name.kt index 916146269e73..66fef7eefdc4 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Name.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Name.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * Model for testing model name same as property name * @param name diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/NullableClass.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/NullableClass.kt index c425afbd0744..eb54c7967e49 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/NullableClass.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/NullableClass.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param integerProp @@ -44,11 +45,11 @@ data class NullableClass ( @Json(name = "datetime_prop") val datetimeProp: java.time.OffsetDateTime? = null, @Json(name = "array_nullable_prop") - val arrayNullableProp: kotlin.Array? = null, + val arrayNullableProp: kotlin.collections.List? = null, @Json(name = "array_and_items_nullable_prop") - val arrayAndItemsNullableProp: kotlin.Array? = null, + val arrayAndItemsNullableProp: kotlin.collections.List? = null, @Json(name = "array_items_nullable") - val arrayItemsNullable: kotlin.Array? = null, + val arrayItemsNullable: kotlin.collections.List? = null, @Json(name = "object_nullable_prop") val objectNullableProp: kotlin.collections.Map? = null, @Json(name = "object_and_items_nullable_prop") diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/NumberOnly.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/NumberOnly.kt index bc8a0156c60c..315938760220 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/NumberOnly.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/NumberOnly.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param justNumber diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Order.kt index 8d14c5b8d0e8..a312ce70e1ca 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param id diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/OuterComposite.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/OuterComposite.kt index 74ddae399302..cda1982e496c 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/OuterComposite.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/OuterComposite.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param myNumber diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Pet.kt index ea8bbdc4cb44..614bf90a6da4 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -16,6 +16,7 @@ import org.openapitools.client.models.Tag import com.squareup.moshi.Json import java.io.Serializable + /** * * @param name @@ -30,13 +31,13 @@ data class Pet ( @Json(name = "name") val name: kotlin.String, @Json(name = "photoUrls") - val photoUrls: kotlin.Array, + val photoUrls: kotlin.collections.List, @Json(name = "id") val id: kotlin.Long? = null, @Json(name = "category") val category: Category? = null, @Json(name = "tags") - val tags: kotlin.Array? = null, + val tags: kotlin.collections.List? = null, /* pet status in the store */ @Json(name = "status") val status: Pet.Status? = null diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt index 51c3d806dfd9..f513c291b79e 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param bar diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Return.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Return.kt index ea215b2e44d1..7d6454e5580e 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Return.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Return.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * Model for testing reserved words * @param `return` diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt index b5e0c881d3fb..c51eefb1ce41 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Tag.kt index 2cc3079a7458..71aa199ee0ca 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param id diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/User.kt index 63cce33a54e4..c83cff139a83 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/User.kt @@ -14,6 +14,7 @@ package org.openapitools.client.models import com.squareup.moshi.Json import java.io.Serializable + /** * * @param id diff --git a/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/api/PetApi.kt b/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/api/PetApi.kt index 612713d99ff6..b500f9155686 100644 --- a/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/api/PetApi.kt +++ b/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/api/PetApi.kt @@ -39,7 +39,7 @@ import kotlin.collections.Map @RestController @Validated -@Api(value = "pet", description = "The pet API") +@Api(value = "Pet", description = "The Pet API") @RequestMapping("\${api.base-path:/v2}") class PetApiController(@Autowired(required = true) val service: PetApiService) { diff --git a/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/api/StoreApi.kt b/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/api/StoreApi.kt index 99dfad74f4fa..71017e33a506 100644 --- a/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/api/StoreApi.kt +++ b/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/api/StoreApi.kt @@ -38,7 +38,7 @@ import kotlin.collections.Map @RestController @Validated -@Api(value = "store", description = "The store API") +@Api(value = "Store", description = "The Store API") @RequestMapping("\${api.base-path:/v2}") class StoreApiController(@Autowired(required = true) val service: StoreApiService) { diff --git a/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/api/UserApi.kt b/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/api/UserApi.kt index d10327cd2877..1dbc304d88e4 100644 --- a/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/api/UserApi.kt +++ b/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/api/UserApi.kt @@ -38,7 +38,7 @@ import kotlin.collections.Map @RestController @Validated -@Api(value = "user", description = "The user API") +@Api(value = "User", description = "The User API") @RequestMapping("\${api.base-path:/v2}") class UserApiController(@Autowired(required = true) val service: UserApiService) {