diff --git a/bin/configs/kotlin-model-prefix-type-mapping-echo-api.yaml b/bin/configs/kotlin-model-prefix-type-mapping-echo-api.yaml index be06d7c885f1..b790566ee439 100644 --- a/bin/configs/kotlin-model-prefix-type-mapping-echo-api.yaml +++ b/bin/configs/kotlin-model-prefix-type-mapping-echo-api.yaml @@ -1,6 +1,6 @@ generatorName: kotlin outputDir: samples/client/echo_api/kotlin-model-prefix-type-mappings -inputSpec: modules/openapi-generator/src/test/resources/3_0/echo_api.yaml +inputSpec: modules/openapi-generator/src/test/resources/3_0/kotlin/echo_api.yaml templateDir: modules/openapi-generator/src/main/resources/kotlin-client typeMappings: java.io.File: RequestBody diff --git a/samples/client/echo_api/kotlin-model-prefix-type-mappings/.openapi-generator/FILES b/samples/client/echo_api/kotlin-model-prefix-type-mappings/.openapi-generator/FILES index 591f509f1494..f0ac80519da4 100644 --- a/samples/client/echo_api/kotlin-model-prefix-type-mappings/.openapi-generator/FILES +++ b/samples/client/echo_api/kotlin-model-prefix-type-mappings/.openapi-generator/FILES @@ -4,7 +4,6 @@ docs/AuthApi.md docs/Bird.md docs/BodyApi.md docs/Category.md -docs/DataQuery.md docs/DefaultValue.md docs/FormApi.md docs/HeaderApi.md @@ -15,7 +14,6 @@ docs/Query.md docs/QueryApi.md docs/StringEnumRef.md docs/Tag.md -docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md gradle/wrapper/gradle-wrapper.jar gradle/wrapper/gradle-wrapper.properties @@ -40,12 +38,10 @@ src/main/kotlin/org/openapitools/client/infrastructure/ResponseExt.kt src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt src/main/kotlin/org/openapitools/client/models/ApiBird.kt src/main/kotlin/org/openapitools/client/models/ApiCategory.kt -src/main/kotlin/org/openapitools/client/models/ApiDataQuery.kt src/main/kotlin/org/openapitools/client/models/ApiDefaultValue.kt src/main/kotlin/org/openapitools/client/models/ApiNumberPropertiesOnly.kt src/main/kotlin/org/openapitools/client/models/ApiPet.kt src/main/kotlin/org/openapitools/client/models/ApiQuery.kt src/main/kotlin/org/openapitools/client/models/ApiStringEnumRef.kt src/main/kotlin/org/openapitools/client/models/ApiTag.kt -src/main/kotlin/org/openapitools/client/models/ApiTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.kt src/main/kotlin/org/openapitools/client/models/ApiTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.kt diff --git a/samples/client/echo_api/kotlin-model-prefix-type-mappings/README.md b/samples/client/echo_api/kotlin-model-prefix-type-mappings/README.md index 7ab5ef06b8dd..1369fc79350d 100644 --- a/samples/client/echo_api/kotlin-model-prefix-type-mappings/README.md +++ b/samples/client/echo_api/kotlin-model-prefix-type-mappings/README.md @@ -51,11 +51,9 @@ Class | Method | HTTP request | Description *BodyApi* | [**testBodyApplicationOctetstreamBinary**](docs/BodyApi.md#testbodyapplicationoctetstreambinary) | **POST** body/application/octetstream/binary | Test body parameter(s) *BodyApi* | [**testBodyMultipartFormdataArrayOfBinary**](docs/BodyApi.md#testbodymultipartformdataarrayofbinary) | **POST** body/application/octetstream/array_of_binary | Test array of binary in multipart mime *BodyApi* | [**testBodyMultipartFormdataSingleBinary**](docs/BodyApi.md#testbodymultipartformdatasinglebinary) | **POST** body/application/octetstream/single_binary | Test single binary in multipart mime -*BodyApi* | [**testEchoBodyAllOfPet**](docs/BodyApi.md#testechobodyallofpet) | **POST** echo/body/allOf/Pet | Test body parameter(s) *BodyApi* | [**testEchoBodyFreeFormObjectResponseString**](docs/BodyApi.md#testechobodyfreeformobjectresponsestring) | **POST** echo/body/FreeFormObject/response_string | Test free form object *BodyApi* | [**testEchoBodyPet**](docs/BodyApi.md#testechobodypet) | **POST** echo/body/Pet | Test body parameter(s) *BodyApi* | [**testEchoBodyPetResponseString**](docs/BodyApi.md#testechobodypetresponsestring) | **POST** echo/body/Pet/response_string | Test empty response body -*BodyApi* | [**testEchoBodyStringEnum**](docs/BodyApi.md#testechobodystringenum) | **POST** echo/body/string_enum | Test string enum response body *BodyApi* | [**testEchoBodyTagResponseString**](docs/BodyApi.md#testechobodytagresponsestring) | **POST** echo/body/Tag/response_string | Test empty json (request body) *FormApi* | [**testFormIntegerBooleanString**](docs/FormApi.md#testformintegerbooleanstring) | **POST** form/integer/boolean/string | Test form parameter(s) *FormApi* | [**testFormOneof**](docs/FormApi.md#testformoneof) | **POST** form/oneof | Test form parameter(s) for oneOf schema @@ -65,12 +63,8 @@ Class | Method | HTTP request | Description *QueryApi* | [**testQueryDatetimeDateString**](docs/QueryApi.md#testquerydatetimedatestring) | **GET** query/datetime/date/string | Test query parameter(s) *QueryApi* | [**testQueryIntegerBooleanString**](docs/QueryApi.md#testqueryintegerbooleanstring) | **GET** query/integer/boolean/string | Test query parameter(s) *QueryApi* | [**testQueryStyleDeepObjectExplodeTrueObject**](docs/QueryApi.md#testquerystyledeepobjectexplodetrueobject) | **GET** query/style_deepObject/explode_true/object | Test query parameter(s) -*QueryApi* | [**testQueryStyleDeepObjectExplodeTrueObjectAllOf**](docs/QueryApi.md#testquerystyledeepobjectexplodetrueobjectallof) | **GET** query/style_deepObject/explode_true/object/allOf | Test query parameter(s) -*QueryApi* | [**testQueryStyleFormExplodeFalseArrayInteger**](docs/QueryApi.md#testquerystyleformexplodefalsearrayinteger) | **GET** query/style_form/explode_false/array_integer | Test query parameter(s) -*QueryApi* | [**testQueryStyleFormExplodeFalseArrayString**](docs/QueryApi.md#testquerystyleformexplodefalsearraystring) | **GET** query/style_form/explode_false/array_string | Test query parameter(s) *QueryApi* | [**testQueryStyleFormExplodeTrueArrayString**](docs/QueryApi.md#testquerystyleformexplodetruearraystring) | **GET** query/style_form/explode_true/array_string | Test query parameter(s) *QueryApi* | [**testQueryStyleFormExplodeTrueObject**](docs/QueryApi.md#testquerystyleformexplodetrueobject) | **GET** query/style_form/explode_true/object | Test query parameter(s) -*QueryApi* | [**testQueryStyleFormExplodeTrueObjectAllOf**](docs/QueryApi.md#testquerystyleformexplodetrueobjectallof) | **GET** query/style_form/explode_true/object/allOf | Test query parameter(s) @@ -78,14 +72,12 @@ Class | Method | HTTP request | Description - [org.openapitools.client.models.ApiBird](docs/ApiBird.md) - [org.openapitools.client.models.ApiCategory](docs/ApiCategory.md) - - [org.openapitools.client.models.ApiDataQuery](docs/ApiDataQuery.md) - [org.openapitools.client.models.ApiDefaultValue](docs/ApiDefaultValue.md) - [org.openapitools.client.models.ApiNumberPropertiesOnly](docs/ApiNumberPropertiesOnly.md) - [org.openapitools.client.models.ApiPet](docs/ApiPet.md) - [org.openapitools.client.models.ApiQuery](docs/ApiQuery.md) - [org.openapitools.client.models.ApiStringEnumRef](docs/ApiStringEnumRef.md) - [org.openapitools.client.models.ApiTag](docs/ApiTag.md) - - [org.openapitools.client.models.ApiTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter](docs/ApiTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md) - [org.openapitools.client.models.ApiTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter](docs/ApiTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md) diff --git a/samples/client/echo_api/kotlin-model-prefix-type-mappings/docs/BodyApi.md b/samples/client/echo_api/kotlin-model-prefix-type-mappings/docs/BodyApi.md index d5ac879bb4ee..ec76bd7d9c47 100644 --- a/samples/client/echo_api/kotlin-model-prefix-type-mappings/docs/BodyApi.md +++ b/samples/client/echo_api/kotlin-model-prefix-type-mappings/docs/BodyApi.md @@ -8,11 +8,9 @@ Method | HTTP request | Description [**testBodyApplicationOctetstreamBinary**](BodyApi.md#testBodyApplicationOctetstreamBinary) | **POST** body/application/octetstream/binary | Test body parameter(s) [**testBodyMultipartFormdataArrayOfBinary**](BodyApi.md#testBodyMultipartFormdataArrayOfBinary) | **POST** body/application/octetstream/array_of_binary | Test array of binary in multipart mime [**testBodyMultipartFormdataSingleBinary**](BodyApi.md#testBodyMultipartFormdataSingleBinary) | **POST** body/application/octetstream/single_binary | Test single binary in multipart mime -[**testEchoBodyAllOfPet**](BodyApi.md#testEchoBodyAllOfPet) | **POST** echo/body/allOf/Pet | Test body parameter(s) [**testEchoBodyFreeFormObjectResponseString**](BodyApi.md#testEchoBodyFreeFormObjectResponseString) | **POST** echo/body/FreeFormObject/response_string | Test free form object [**testEchoBodyPet**](BodyApi.md#testEchoBodyPet) | **POST** echo/body/Pet | Test body parameter(s) [**testEchoBodyPetResponseString**](BodyApi.md#testEchoBodyPetResponseString) | **POST** echo/body/Pet/response_string | Test empty response body -[**testEchoBodyStringEnum**](BodyApi.md#testEchoBodyStringEnum) | **POST** echo/body/string_enum | Test string enum response body [**testEchoBodyTagResponseString**](BodyApi.md#testEchoBodyTagResponseString) | **POST** echo/body/Tag/response_string | Test empty json (request body) @@ -173,46 +171,6 @@ No authorization required - **Accept**: text/plain -Test body parameter(s) - -Test body parameter(s) - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(BodyApi::class.java) -val apiPet : ApiPet = // ApiPet | Pet object that needs to be added to the store - -launch(Dispatchers.IO) { - val result : ApiPet = webService.testEchoBodyAllOfPet(apiPet) -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiPet** | [**ApiPet**](ApiPet.md)| Pet object that needs to be added to the store | [optional] - -### Return type - -[**ApiPet**](ApiPet.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - Test free form object Test free form object @@ -333,46 +291,6 @@ No authorization required - **Accept**: text/plain -Test string enum response body - -Test string enum response body - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(BodyApi::class.java) -val body : kotlin.String = // kotlin.String | String enum - -launch(Dispatchers.IO) { - val result : ApiStringEnumRef = webService.testEchoBodyStringEnum(body) -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **kotlin.String**| String enum | [optional] - -### Return type - -[**ApiStringEnumRef**](ApiStringEnumRef.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - Test empty json (request body) Test empty json (request body) diff --git a/samples/client/echo_api/kotlin-model-prefix-type-mappings/docs/QueryApi.md b/samples/client/echo_api/kotlin-model-prefix-type-mappings/docs/QueryApi.md index 511dadd64f2b..f8dc4354cce3 100644 --- a/samples/client/echo_api/kotlin-model-prefix-type-mappings/docs/QueryApi.md +++ b/samples/client/echo_api/kotlin-model-prefix-type-mappings/docs/QueryApi.md @@ -8,12 +8,8 @@ Method | HTTP request | Description [**testQueryDatetimeDateString**](QueryApi.md#testQueryDatetimeDateString) | **GET** query/datetime/date/string | Test query parameter(s) [**testQueryIntegerBooleanString**](QueryApi.md#testQueryIntegerBooleanString) | **GET** query/integer/boolean/string | Test query parameter(s) [**testQueryStyleDeepObjectExplodeTrueObject**](QueryApi.md#testQueryStyleDeepObjectExplodeTrueObject) | **GET** query/style_deepObject/explode_true/object | Test query parameter(s) -[**testQueryStyleDeepObjectExplodeTrueObjectAllOf**](QueryApi.md#testQueryStyleDeepObjectExplodeTrueObjectAllOf) | **GET** query/style_deepObject/explode_true/object/allOf | Test query parameter(s) -[**testQueryStyleFormExplodeFalseArrayInteger**](QueryApi.md#testQueryStyleFormExplodeFalseArrayInteger) | **GET** query/style_form/explode_false/array_integer | Test query parameter(s) -[**testQueryStyleFormExplodeFalseArrayString**](QueryApi.md#testQueryStyleFormExplodeFalseArrayString) | **GET** query/style_form/explode_false/array_string | Test query parameter(s) [**testQueryStyleFormExplodeTrueArrayString**](QueryApi.md#testQueryStyleFormExplodeTrueArrayString) | **GET** query/style_form/explode_true/array_string | Test query parameter(s) [**testQueryStyleFormExplodeTrueObject**](QueryApi.md#testQueryStyleFormExplodeTrueObject) | **GET** query/style_form/explode_true/object | Test query parameter(s) -[**testQueryStyleFormExplodeTrueObjectAllOf**](QueryApi.md#testQueryStyleFormExplodeTrueObjectAllOf) | **GET** query/style_form/explode_true/object/allOf | Test query parameter(s) @@ -187,126 +183,6 @@ No authorization required - **Accept**: text/plain -Test query parameter(s) - -Test query parameter(s) - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(QueryApi::class.java) -val queryObject : ApiTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter = // ApiTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter | - -launch(Dispatchers.IO) { - val result : kotlin.String = webService.testQueryStyleDeepObjectExplodeTrueObjectAllOf(queryObject) -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **queryObject** | [**ApiTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter**](.md)| | [optional] - -### Return type - -**kotlin.String** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: text/plain - - -Test query parameter(s) - -Test query parameter(s) - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(QueryApi::class.java) -val queryObject : kotlin.collections.List = // kotlin.collections.List | - -launch(Dispatchers.IO) { - val result : kotlin.String = webService.testQueryStyleFormExplodeFalseArrayInteger(queryObject) -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **queryObject** | [**kotlin.collections.List<kotlin.Int>**](kotlin.Int.md)| | [optional] - -### Return type - -**kotlin.String** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: text/plain - - -Test query parameter(s) - -Test query parameter(s) - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(QueryApi::class.java) -val queryObject : kotlin.collections.List = // kotlin.collections.List | - -launch(Dispatchers.IO) { - val result : kotlin.String = webService.testQueryStyleFormExplodeFalseArrayString(queryObject) -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **queryObject** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| | [optional] - -### Return type - -**kotlin.String** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: text/plain - - Test query parameter(s) Test query parameter(s) @@ -386,43 +262,3 @@ No authorization required - **Content-Type**: Not defined - **Accept**: text/plain - -Test query parameter(s) - -Test query parameter(s) - -### Example -```kotlin -// Import classes: -//import org.openapitools.client.* -//import org.openapitools.client.infrastructure.* -//import org.openapitools.client.models.* - -val apiClient = ApiClient() -val webService = apiClient.createWebservice(QueryApi::class.java) -val queryObject : ApiDataQuery = // ApiDataQuery | - -launch(Dispatchers.IO) { - val result : kotlin.String = webService.testQueryStyleFormExplodeTrueObjectAllOf(queryObject) -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **queryObject** | [**ApiDataQuery**](.md)| | [optional] - -### Return type - -**kotlin.String** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: text/plain - diff --git a/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/apis/BodyApi.kt b/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/apis/BodyApi.kt index 7f8eca2ee36c..5cd52c1ba48a 100644 --- a/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/apis/BodyApi.kt +++ b/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/apis/BodyApi.kt @@ -8,7 +8,6 @@ import okhttp3.ResponseBody import com.google.gson.annotations.SerializedName import org.openapitools.client.models.ApiPet -import org.openapitools.client.models.ApiStringEnumRef import org.openapitools.client.models.ApiTag import okhttp3.MultipartBody @@ -63,18 +62,6 @@ interface BodyApi { @POST("body/application/octetstream/single_binary") suspend fun testBodyMultipartFormdataSingleBinary(@Part myFile: MultipartBody.Part? = null): Response - /** - * Test body parameter(s) - * Test body parameter(s) - * Responses: - * - 200: Successful operation - * - * @param apiPet Pet object that needs to be added to the store (optional) - * @return [ApiPet] - */ - @POST("echo/body/allOf/Pet") - suspend fun testEchoBodyAllOfPet(@Body apiPet: ApiPet? = null): Response - /** * Test free form object * Test free form object @@ -111,18 +98,6 @@ interface BodyApi { @POST("echo/body/Pet/response_string") suspend fun testEchoBodyPetResponseString(@Body apiPet: ApiPet? = null): Response - /** - * Test string enum response body - * Test string enum response body - * Responses: - * - 200: Successful operation - * - * @param body String enum (optional) - * @return [ApiStringEnumRef] - */ - @POST("echo/body/string_enum") - suspend fun testEchoBodyStringEnum(@Body body: kotlin.String? = null): Response - /** * Test empty json (request body) * Test empty json (request body) diff --git a/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/apis/QueryApi.kt b/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/apis/QueryApi.kt index 376f62a96b57..f823b28c1082 100644 --- a/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/apis/QueryApi.kt +++ b/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/apis/QueryApi.kt @@ -6,10 +6,8 @@ import retrofit2.Response import okhttp3.RequestBody import com.google.gson.annotations.SerializedName -import org.openapitools.client.models.ApiDataQuery import org.openapitools.client.models.ApiPet import org.openapitools.client.models.ApiStringEnumRef -import org.openapitools.client.models.ApiTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter import org.openapitools.client.models.ApiTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter interface QueryApi { @@ -76,42 +74,6 @@ interface QueryApi { @GET("query/style_deepObject/explode_true/object") suspend fun testQueryStyleDeepObjectExplodeTrueObject(@Query("query_object") queryObject: ApiPet? = null): Response - /** - * Test query parameter(s) - * Test query parameter(s) - * Responses: - * - 200: Successful operation - * - * @param queryObject (optional) - * @return [kotlin.String] - */ - @GET("query/style_deepObject/explode_true/object/allOf") - suspend fun testQueryStyleDeepObjectExplodeTrueObjectAllOf(@Query("query_object") queryObject: ApiTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter? = null): Response - - /** - * Test query parameter(s) - * Test query parameter(s) - * Responses: - * - 200: Successful operation - * - * @param queryObject (optional) - * @return [kotlin.String] - */ - @GET("query/style_form/explode_false/array_integer") - suspend fun testQueryStyleFormExplodeFalseArrayInteger(@Query("query_object") queryObject: CSVParams? = null): Response - - /** - * Test query parameter(s) - * Test query parameter(s) - * Responses: - * - 200: Successful operation - * - * @param queryObject (optional) - * @return [kotlin.String] - */ - @GET("query/style_form/explode_false/array_string") - suspend fun testQueryStyleFormExplodeFalseArrayString(@Query("query_object") queryObject: CSVParams? = null): Response - /** * Test query parameter(s) * Test query parameter(s) @@ -141,16 +103,4 @@ interface QueryApi { @GET("query/style_form/explode_true/object") suspend fun testQueryStyleFormExplodeTrueObject(@Query("id") id: kotlin.Long? = null, @Query("name") name: kotlin.String, @Query("category") category: ApiCategory? = null, @Query("photoUrls") photoUrls: kotlin.collections.List, @Query("tags") tags: kotlin.collections.List? = null, @Query("status") status: kotlin.String? = null): Response - /** - * Test query parameter(s) - * Test query parameter(s) - * Responses: - * - 200: Successful operation - * - * @param queryObject (optional) - * @return [kotlin.String] - */ - @GET("query/style_form/explode_true/object/allOf") - suspend fun testQueryStyleFormExplodeTrueObjectAllOf(@Query("query_object") queryObject: ApiDataQuery? = null): Response - } diff --git a/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiDefaultValue.kt b/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiDefaultValue.kt index afab7f6cb4ba..55d133838331 100644 --- a/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiDefaultValue.kt +++ b/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiDefaultValue.kt @@ -36,10 +36,10 @@ import com.google.gson.annotations.SerializedName data class ApiDefaultValue ( @SerializedName("array_string_enum_ref_default") - val arrayStringEnumRefDefault: kotlin.collections.List? = arrayListOf(ApiStringEnumRef.SUCCESS,ApiStringEnumRef.FAILURE), + val arrayStringEnumRefDefault: kotlin.collections.List? = null, @SerializedName("array_string_enum_default") - val arrayStringEnumDefault: kotlin.collections.List? = arrayListOf(ArrayStringEnumDefault.SUCCESS,ArrayStringEnumDefault.FAILURE), + val arrayStringEnumDefault: kotlin.collections.List? = null, @SerializedName("array_string_default") val arrayStringDefault: kotlin.collections.List? = arrayListOf("failure","skipped"), diff --git a/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiQuery.kt b/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiQuery.kt index b3f5f5c810f5..545b6556eedc 100644 --- a/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiQuery.kt +++ b/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiQuery.kt @@ -33,7 +33,7 @@ data class ApiQuery ( val id: kotlin.Long? = null, @SerializedName("outcomes") - val outcomes: kotlin.collections.List? = arrayListOf(Outcomes.SUCCESS,Outcomes.FAILURE) + val outcomes: kotlin.collections.List? = null ) {