From 9f2e8fbf149f331c6bf21539430b1a9a5d5493a7 Mon Sep 17 00:00:00 2001 From: "Astakhov, Andrew" Date: Wed, 17 Oct 2018 18:07:03 -0400 Subject: [PATCH] [Kotlin] Void Response Type Fix --- .../main/resources/kotlin-client/api.mustache | 2 +- .../infrastructure/ApiClient.kt.mustache | 2 ++ samples/client/petstore/kotlin/README.md | 6 ++-- samples/client/petstore/kotlin/docs/Amount.md | 11 ++++++++ .../client/petstore/kotlin/docs/Currency.md | 9 ++++++ samples/client/petstore/kotlin/docs/PetApi.md | 4 +-- .../client/petstore/kotlin/docs/StoreApi.md | 10 +++---- .../client/petstore/kotlin/docs/UserApi.md | 10 +++---- .../client/petstore/kotlin/settings.gradle | 2 +- .../kotlin/io/swagger/client/apis/PetApi.kt | 16 +++++------ .../kotlin/io/swagger/client/apis/StoreApi.kt | 10 +++---- .../kotlin/io/swagger/client/apis/UserApi.kt | 18 ++++++------ .../client/infrastructure/ApiClient.kt | 2 ++ .../kotlin/io/swagger/client/models/Amount.kt | 28 +++++++++++++++++++ .../io/swagger/client/models/ApiResponse.kt | 2 +- .../io/swagger/client/models/Category.kt | 2 +- .../io/swagger/client/models/Currency.kt | 15 ++++++++++ .../kotlin/io/swagger/client/models/Order.kt | 2 +- .../kotlin/io/swagger/client/models/Pet.kt | 2 +- .../kotlin/io/swagger/client/models/Tag.kt | 2 +- .../kotlin/io/swagger/client/models/User.kt | 2 +- 21 files changed, 113 insertions(+), 44 deletions(-) create mode 100644 samples/client/petstore/kotlin/docs/Amount.md create mode 100644 samples/client/petstore/kotlin/docs/Currency.md create mode 100644 samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/Amount.kt create mode 100644 samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/Currency.kt diff --git a/modules/swagger-codegen/src/main/resources/kotlin-client/api.mustache b/modules/swagger-codegen/src/main/resources/kotlin-client/api.mustache index a167de64650..cd9693ebb77 100644 --- a/modules/swagger-codegen/src/main/resources/kotlin-client/api.mustache +++ b/modules/swagger-codegen/src/main/resources/kotlin-client/api.mustache @@ -36,7 +36,7 @@ class {{classname}}(basePath: kotlin.String = "{{{basePath}}}") : ApiClient(base query = localVariableQuery, headers = localVariableHeaders ) - val response = request<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Any?{{/returnType}}>( + val response = request<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Unit{{/returnType}}>( localVariableConfig, localVariableBody ) diff --git a/modules/swagger-codegen/src/main/resources/kotlin-client/infrastructure/ApiClient.kt.mustache b/modules/swagger-codegen/src/main/resources/kotlin-client/infrastructure/ApiClient.kt.mustache index 090e1a10228..aacc1965253 100644 --- a/modules/swagger-codegen/src/main/resources/kotlin-client/infrastructure/ApiClient.kt.mustache +++ b/modules/swagger-codegen/src/main/resources/kotlin-client/infrastructure/ApiClient.kt.mustache @@ -58,6 +58,8 @@ open class ApiClient(val baseUrl: String) { if(T::class.java == java.io.File::class.java){ return downloadFileFromResponse(response) as T + } else if(T::class == kotlin.Unit::class) { + return kotlin.Unit as T } var contentType = response.headers().get("Content-Type") diff --git a/samples/client/petstore/kotlin/README.md b/samples/client/petstore/kotlin/README.md index 1a2e050ba6e..29aea429bf4 100644 --- a/samples/client/petstore/kotlin/README.md +++ b/samples/client/petstore/kotlin/README.md @@ -31,7 +31,7 @@ This runs all tests and packages the library. ## Documentation for API Endpoints -All URIs are relative to *https://petstore.swagger.io/v2* +All URIs are relative to *http://petstore.swagger.io/v2* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- @@ -60,8 +60,10 @@ Class | Method | HTTP request | Description ## Documentation for Models + - [io.swagger.client.models.Amount](docs/Amount.md) - [io.swagger.client.models.ApiResponse](docs/ApiResponse.md) - [io.swagger.client.models.Category](docs/Category.md) + - [io.swagger.client.models.Currency](docs/Currency.md) - [io.swagger.client.models.Order](docs/Order.md) - [io.swagger.client.models.Pet](docs/Pet.md) - [io.swagger.client.models.Tag](docs/Tag.md) @@ -83,7 +85,7 @@ Class | Method | HTTP request | Description - **Type**: OAuth - **Flow**: implicit -- **Authorization URL**: https://petstore.swagger.io/oauth/dialog +- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog - **Scopes**: - write:pets: modify pets in your account - read:pets: read your pets diff --git a/samples/client/petstore/kotlin/docs/Amount.md b/samples/client/petstore/kotlin/docs/Amount.md new file mode 100644 index 00000000000..c2f861298c5 --- /dev/null +++ b/samples/client/petstore/kotlin/docs/Amount.md @@ -0,0 +1,11 @@ + +# Amount + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **kotlin.Double** | some description | +**currency** | [**Currency**](Currency.md) | | + + + diff --git a/samples/client/petstore/kotlin/docs/Currency.md b/samples/client/petstore/kotlin/docs/Currency.md new file mode 100644 index 00000000000..4755986376b --- /dev/null +++ b/samples/client/petstore/kotlin/docs/Currency.md @@ -0,0 +1,9 @@ + +# Currency + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + + + diff --git a/samples/client/petstore/kotlin/docs/PetApi.md b/samples/client/petstore/kotlin/docs/PetApi.md index 24bada35c8d..29fb5bd0eeb 100644 --- a/samples/client/petstore/kotlin/docs/PetApi.md +++ b/samples/client/petstore/kotlin/docs/PetApi.md @@ -1,6 +1,6 @@ # PetApi -All URIs are relative to *https://petstore.swagger.io/v2* +All URIs are relative to *http://petstore.swagger.io/v2* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -161,7 +161,7 @@ Name | Type | Description | Notes Finds Pets by tags -Muliple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. +Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. ### Example ```kotlin diff --git a/samples/client/petstore/kotlin/docs/StoreApi.md b/samples/client/petstore/kotlin/docs/StoreApi.md index 4a0371c2f42..022e1362b0f 100644 --- a/samples/client/petstore/kotlin/docs/StoreApi.md +++ b/samples/client/petstore/kotlin/docs/StoreApi.md @@ -1,6 +1,6 @@ # StoreApi -All URIs are relative to *https://petstore.swagger.io/v2* +All URIs are relative to *http://petstore.swagger.io/v2* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -16,7 +16,7 @@ Method | HTTP request | Description Delete purchase order by ID -For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors +For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors ### Example ```kotlin @@ -25,7 +25,7 @@ For valid response try integer IDs with positive integer value. Negative or non- //import io.swagger.client.models.* val apiInstance = StoreApi() -val orderId : kotlin.Long = 789 // kotlin.Long | ID of the order that needs to be deleted +val orderId : kotlin.String = orderId_example // kotlin.String | ID of the order that needs to be deleted try { apiInstance.deleteOrder(orderId) } catch (e: ClientException) { @@ -41,7 +41,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **orderId** | **kotlin.Long**| ID of the order that needs to be deleted | + **orderId** | **kotlin.String**| ID of the order that needs to be deleted | ### Return type @@ -105,7 +105,7 @@ This endpoint does not need any parameter. Find purchase order by ID -For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions +For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions ### Example ```kotlin diff --git a/samples/client/petstore/kotlin/docs/UserApi.md b/samples/client/petstore/kotlin/docs/UserApi.md index 67fd45527c4..0c4b9b79de8 100644 --- a/samples/client/petstore/kotlin/docs/UserApi.md +++ b/samples/client/petstore/kotlin/docs/UserApi.md @@ -1,6 +1,6 @@ # UserApi -All URIs are relative to *https://petstore.swagger.io/v2* +All URIs are relative to *http://petstore.swagger.io/v2* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -213,7 +213,7 @@ Get user by user name //import io.swagger.client.models.* val apiInstance = UserApi() -val username : kotlin.String = username_example // kotlin.String | The name that needs to be fetched. Use user1 for testing. +val username : kotlin.String = username_example // kotlin.String | The name that needs to be fetched. Use user1 for testing. try { val result : User = apiInstance.getUserByName(username) println(result) @@ -230,7 +230,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **username** | **kotlin.String**| The name that needs to be fetched. Use user1 for testing. | + **username** | **kotlin.String**| The name that needs to be fetched. Use user1 for testing. | ### Return type @@ -351,7 +351,7 @@ This can only be done by the logged in user. //import io.swagger.client.models.* val apiInstance = UserApi() -val username : kotlin.String = username_example // kotlin.String | name that need to be updated +val username : kotlin.String = username_example // kotlin.String | name that need to be deleted val body : User = // User | Updated user object try { apiInstance.updateUser(username, body) @@ -368,7 +368,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **username** | **kotlin.String**| name that need to be updated | + **username** | **kotlin.String**| name that need to be deleted | **body** | [**User**](User.md)| Updated user object | ### Return type diff --git a/samples/client/petstore/kotlin/settings.gradle b/samples/client/petstore/kotlin/settings.gradle index 50b05bef95e..17e020387e2 100644 --- a/samples/client/petstore/kotlin/settings.gradle +++ b/samples/client/petstore/kotlin/settings.gradle @@ -1 +1 @@ -rootProject.name = 'kotlin-client' \ No newline at end of file +rootProject.name = 'kotlin-petstore-client' \ No newline at end of file diff --git a/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/apis/PetApi.kt b/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/apis/PetApi.kt index 607f39e0744..32fccf1bff2 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/apis/PetApi.kt @@ -16,7 +16,7 @@ import io.swagger.client.models.Pet import io.swagger.client.infrastructure.* -class PetApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiClient(basePath) { +class PetApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiClient(basePath) { /** * Add a new pet to the store @@ -40,7 +40,7 @@ class PetApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiCl query = localVariableQuery, headers = localVariableHeaders ) - val response = request( + val response = request( localVariableConfig, localVariableBody ) @@ -78,7 +78,7 @@ class PetApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiCl query = localVariableQuery, headers = localVariableHeaders ) - val response = request( + val response = request( localVariableConfig, localVariableBody ) @@ -102,7 +102,7 @@ class PetApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiCl @Suppress("UNCHECKED_CAST") fun findPetsByStatus(status: kotlin.Array) : kotlin.Array { val localVariableBody: kotlin.Any? = null - val localVariableQuery: MultiValueMap = mapOf("status" to toMultiValue(status.toList(), "multi")) + val localVariableQuery: MultiValueMap = mapOf("status" to toMultiValue(status.toList(), "csv")) val contentHeaders: kotlin.collections.Map = mapOf() val acceptsHeaders: kotlin.collections.Map = mapOf("Accept" to "application/xml, application/json") @@ -133,14 +133,14 @@ class PetApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiCl /** * Finds Pets by tags - * Muliple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. * @param tags Tags to filter by * @return kotlin.Array */ @Suppress("UNCHECKED_CAST") fun findPetsByTags(tags: kotlin.Array) : kotlin.Array { val localVariableBody: kotlin.Any? = null - val localVariableQuery: MultiValueMap = mapOf("tags" to toMultiValue(tags.toList(), "multi")) + val localVariableQuery: MultiValueMap = mapOf("tags" to toMultiValue(tags.toList(), "csv")) val contentHeaders: kotlin.collections.Map = mapOf() val acceptsHeaders: kotlin.collections.Map = mapOf("Accept" to "application/xml, application/json") @@ -229,7 +229,7 @@ class PetApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiCl query = localVariableQuery, headers = localVariableHeaders ) - val response = request( + val response = request( localVariableConfig, localVariableBody ) @@ -268,7 +268,7 @@ class PetApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiCl query = localVariableQuery, headers = localVariableHeaders ) - val response = request( + val response = request( localVariableConfig, localVariableBody ) diff --git a/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/apis/StoreApi.kt b/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/apis/StoreApi.kt index f4a95a36616..225be7f9b76 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/apis/StoreApi.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/apis/StoreApi.kt @@ -15,15 +15,15 @@ import io.swagger.client.models.Order import io.swagger.client.infrastructure.* -class StoreApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiClient(basePath) { +class StoreApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiClient(basePath) { /** * Delete purchase order by ID - * For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors + * 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 */ - fun deleteOrder(orderId: kotlin.Long) : Unit { + fun deleteOrder(orderId: kotlin.String) : Unit { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = mapOf() @@ -39,7 +39,7 @@ class StoreApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : Api query = localVariableQuery, headers = localVariableHeaders ) - val response = request( + val response = request( localVariableConfig, localVariableBody ) @@ -93,7 +93,7 @@ class StoreApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : Api /** * Find purchase order by ID - * For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions + * 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 */ diff --git a/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/apis/UserApi.kt b/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/apis/UserApi.kt index dc83e3932ec..72d38bf89be 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/apis/UserApi.kt @@ -15,7 +15,7 @@ import io.swagger.client.models.User import io.swagger.client.infrastructure.* -class UserApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiClient(basePath) { +class UserApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiClient(basePath) { /** * Create user @@ -39,7 +39,7 @@ class UserApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiC query = localVariableQuery, headers = localVariableHeaders ) - val response = request( + val response = request( localVariableConfig, localVariableBody ) @@ -76,7 +76,7 @@ class UserApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiC query = localVariableQuery, headers = localVariableHeaders ) - val response = request( + val response = request( localVariableConfig, localVariableBody ) @@ -113,7 +113,7 @@ class UserApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiC query = localVariableQuery, headers = localVariableHeaders ) - val response = request( + val response = request( localVariableConfig, localVariableBody ) @@ -150,7 +150,7 @@ class UserApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiC query = localVariableQuery, headers = localVariableHeaders ) - val response = request( + val response = request( localVariableConfig, localVariableBody ) @@ -168,7 +168,7 @@ class UserApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiC /** * Get user by user name * - * @param username The name that needs to be fetched. Use user1 for testing. + * @param username The name that needs to be fetched. Use user1 for testing. * @return User */ @Suppress("UNCHECKED_CAST") @@ -263,7 +263,7 @@ class UserApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiC query = localVariableQuery, headers = localVariableHeaders ) - val response = request( + val response = request( localVariableConfig, localVariableBody ) @@ -281,7 +281,7 @@ class UserApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiC /** * Updated user * This can only be done by the logged in user. - * @param username name that need to be updated + * @param username name that need to be deleted * @param body Updated user object * @return void */ @@ -301,7 +301,7 @@ class UserApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiC query = localVariableQuery, headers = localVariableHeaders ) - val response = request( + val response = request( localVariableConfig, localVariableBody ) diff --git a/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/infrastructure/ApiClient.kt b/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/infrastructure/ApiClient.kt index 0595041a6d2..d6ce73ec8fb 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/infrastructure/ApiClient.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/infrastructure/ApiClient.kt @@ -58,6 +58,8 @@ open class ApiClient(val baseUrl: String) { if(T::class.java == java.io.File::class.java){ return downloadFileFromResponse(response) as T + } else if(T::class == kotlin.Unit::class) { + return kotlin.Unit as T } var contentType = response.headers().get("Content-Type") diff --git a/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/Amount.kt b/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/Amount.kt new file mode 100644 index 00000000000..3764bcb42c4 --- /dev/null +++ b/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/Amount.kt @@ -0,0 +1,28 @@ +/** +* Swagger Petstore +* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. +* +* OpenAPI spec version: 1.0.0 +* Contact: apiteam@swagger.io +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package io.swagger.client.models + +import io.swagger.client.models.Currency + +/** + * some description + * @param value some description + * @param currency + */ +data class Amount ( + /* some description */ + val value: kotlin.Double, + val currency: Currency +) { + +} + diff --git a/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/ApiResponse.kt b/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/ApiResponse.kt index 923a0fee1e2..c79864c2515 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/ApiResponse.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/ApiResponse.kt @@ -13,7 +13,7 @@ package io.swagger.client.models /** - * + * Describes the result of uploading an image resource * @param code * @param type * @param message diff --git a/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/Category.kt b/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/Category.kt index c9a1ac7158f..f14b8010fcc 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/Category.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/Category.kt @@ -13,7 +13,7 @@ package io.swagger.client.models /** - * + * A category for a pet * @param id * @param name */ diff --git a/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/Currency.kt b/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/Currency.kt new file mode 100644 index 00000000000..a5086f24ef5 --- /dev/null +++ b/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/Currency.kt @@ -0,0 +1,15 @@ +/** +* Swagger Petstore +* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. +* +* OpenAPI spec version: 1.0.0 +* Contact: apiteam@swagger.io +* +* NOTE: This class is auto generated by the swagger code generator program. +* https://github.com/swagger-api/swagger-codegen.git +* Do not edit the class manually. +*/ +package io.swagger.client.models + + +typealias Currency = kotlin.String diff --git a/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/Order.kt b/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/Order.kt index 041f9ea0f0d..718a31cd0d3 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/Order.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/Order.kt @@ -14,7 +14,7 @@ package io.swagger.client.models import com.squareup.moshi.Json /** - * + * An order for a pets from the pet store * @param id * @param petId * @param quantity diff --git a/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/Pet.kt b/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/Pet.kt index 488dc73552f..4008a46203c 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/Pet.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/Pet.kt @@ -16,7 +16,7 @@ import io.swagger.client.models.Tag import com.squareup.moshi.Json /** - * + * A pet for sale in the pet store * @param id * @param category * @param name diff --git a/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/Tag.kt b/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/Tag.kt index e5a51f1784d..6686186b1a2 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/Tag.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/Tag.kt @@ -13,7 +13,7 @@ package io.swagger.client.models /** - * + * A tag for a pet * @param id * @param name */ diff --git a/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/User.kt b/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/User.kt index 0c3847b34cc..527a75bad4b 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/User.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/models/User.kt @@ -13,7 +13,7 @@ package io.swagger.client.models /** - * + * A User who is purchasing from the pet store * @param id * @param username * @param firstName