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 ec0fdf07b2d5..e1f5062f2e2e 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 @@ -48,9 +48,9 @@ import java.io.Serializable ){{/discriminator}}{{#parent}}{{^serializableModel}}{{^parcelizeModels}} : {{{parent}}}{{#isMapModel}}(){{/isMapModel}}{{#isArrayModel}}(){{/isArrayModel}}{{/parcelizeModels}}{{/serializableModel}}{{/parent}}{{#parent}}{{#serializableModel}}{{^parcelizeModels}} : {{{parent}}}{{#isMapModel}}(){{/isMapModel}}{{#isArrayModel}}(){{/isArrayModel}}, Serializable{{/parcelizeModels}}{{/serializableModel}}{{/parent}}{{#parent}}{{^serializableModel}}{{#parcelizeModels}} : {{{parent}}}{{#isMapModel}}(){{/isMapModel}}{{#isArrayModel}}(){{/isArrayModel}}, Parcelable{{/parcelizeModels}}{{/serializableModel}}{{/parent}}{{#parent}}{{#serializableModel}}{{#parcelizeModels}} : {{{parent}}}{{#isMapModel}}(){{/isMapModel}}{{#isArrayModel}}(){{/isArrayModel}}, Serializable, Parcelable{{/parcelizeModels}}{{/serializableModel}}{{/parent}}{{^parent}}{{#serializableModel}}{{^parcelizeModels}} : Serializable{{/parcelizeModels}}{{/serializableModel}}{{/parent}}{{^parent}}{{^serializableModel}}{{#parcelizeModels}} : Parcelable{{/parcelizeModels}}{{/serializableModel}}{{/parent}}{{^parent}}{{#serializableModel}}{{#parcelizeModels}} : Serializable, Parcelable{{/parcelizeModels}}{{/serializableModel}}{{/parent}}{{#vendorExtensions.x-has-data-class-body}} { {{/vendorExtensions.x-has-data-class-body}} {{#serializableModel}} - {{#nonPublicApi}}internal {{/nonPublicApi}}companion object { - private const val serialVersionUID: Long = 123 - } + {{#nonPublicApi}}internal {{/nonPublicApi}}companion object { + private const val serialVersionUID: Long = 123 + } {{/serializableModel}} {{#discriminator}}{{#vars}}{{#required}} {{>interface_req_var}}{{/required}}{{^required}} diff --git a/modules/openapi-generator/src/main/resources/kotlin-client/enum_class.mustache b/modules/openapi-generator/src/main/resources/kotlin-client/enum_class.mustache index 4704fcfabf88..8de73d460492 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-client/enum_class.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-client/enum_class.mustache @@ -47,11 +47,11 @@ import kotlinx.serialization.internal.CommonEnumSerializer {{/enumVars}}{{/allowableValues}} - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value{{^isString}}.toString(){{/isString}} } 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 b4c9c9b76743..83b19bd556f0 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 @@ -29,9 +29,9 @@ data class ApiResponse ( @SerializedName("message") val message: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 6dfe689dd04c..60962ece7d4e 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 @@ -26,9 +26,9 @@ data class Category ( @SerializedName("name") val name: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 0a049435cdb0..474530938cf5 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 @@ -39,9 +39,9 @@ data class Order ( @SerializedName("complete") val complete: kotlin.Boolean? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } /** * Order Status 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 0290ccbb124f..2fc4113d2059 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 @@ -41,9 +41,9 @@ data class Pet ( @SerializedName("status") val status: Pet.Status? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } /** * pet status in the store 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 68c1ca9365fa..0e1786917625 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 @@ -26,9 +26,9 @@ data class Tag ( @SerializedName("name") val name: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 32eaba94d250..daa329717364 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 @@ -45,9 +45,9 @@ data class User ( @SerializedName("userStatus") val userStatus: kotlin.Int? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 eed5027e8017..3c715519085b 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 @@ -29,9 +29,9 @@ data class ApiResponse ( @Json(name = "message") val message: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 f29e68330576..07955e4ff491 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 @@ -26,9 +26,9 @@ data class Category ( @Json(name = "name") val name: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 2b92b4375d14..d5048059d44e 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 @@ -39,9 +39,9 @@ data class Order ( @Json(name = "complete") val complete: kotlin.Boolean? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } /** * Order Status 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 bb0a5df6e198..0f72fb6bd360 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 @@ -41,9 +41,9 @@ data class Pet ( @Json(name = "status") val status: Pet.Status? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } /** * pet status in the store 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 aa93e4356956..fa228fbe1f49 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 @@ -26,9 +26,9 @@ data class Tag ( @Json(name = "name") val name: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 7487ed927d1b..d02cbd91abd9 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 @@ -45,9 +45,9 @@ data class User ( @Json(name = "userStatus") val userStatus: kotlin.Int? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 eed5027e8017..3c715519085b 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 @@ -29,9 +29,9 @@ data class ApiResponse ( @Json(name = "message") val message: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 f29e68330576..07955e4ff491 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 @@ -26,9 +26,9 @@ data class Category ( @Json(name = "name") val name: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 847b3ff5e288..c71bb5bda0d4 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 @@ -39,9 +39,9 @@ data class Order ( @Json(name = "complete") val complete: kotlin.Boolean? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } /** * Order Status 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 d3a480e2f149..0dd3a58bcaed 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 @@ -41,9 +41,9 @@ data class Pet ( @Json(name = "status") val status: Pet.Status? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } /** * pet status in the store 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 aa93e4356956..fa228fbe1f49 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 @@ -26,9 +26,9 @@ data class Tag ( @Json(name = "name") val name: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 7487ed927d1b..d02cbd91abd9 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 @@ -45,9 +45,9 @@ data class User ( @Json(name = "userStatus") val userStatus: kotlin.Int? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 eed5027e8017..3c715519085b 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 @@ -29,9 +29,9 @@ data class ApiResponse ( @Json(name = "message") val message: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 f29e68330576..07955e4ff491 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 @@ -26,9 +26,9 @@ data class Category ( @Json(name = "name") val name: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 2b92b4375d14..d5048059d44e 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 @@ -39,9 +39,9 @@ data class Order ( @Json(name = "complete") val complete: kotlin.Boolean? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } /** * Order Status 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 bb0a5df6e198..0f72fb6bd360 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 @@ -41,9 +41,9 @@ data class Pet ( @Json(name = "status") val status: Pet.Status? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } /** * pet status in the store 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 aa93e4356956..fa228fbe1f49 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 @@ -26,9 +26,9 @@ data class Tag ( @Json(name = "name") val name: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 7487ed927d1b..d02cbd91abd9 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 @@ -45,9 +45,9 @@ data class User ( @Json(name = "userStatus") val userStatus: kotlin.Int? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/.openapi-generator/FILES b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/.openapi-generator/FILES new file mode 100644 index 000000000000..63cd1381e9d8 --- /dev/null +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/.openapi-generator/FILES @@ -0,0 +1,122 @@ +.openapi-generator-ignore +README.md +build.gradle +docs/200Response.md +docs/AdditionalPropertiesClass.md +docs/Animal.md +docs/AnotherFakeApi.md +docs/ApiResponse.md +docs/ArrayOfArrayOfNumberOnly.md +docs/ArrayOfNumberOnly.md +docs/ArrayTest.md +docs/Capitalization.md +docs/Cat.md +docs/CatAllOf.md +docs/Category.md +docs/ClassModel.md +docs/Client.md +docs/DefaultApi.md +docs/Dog.md +docs/DogAllOf.md +docs/EnumArrays.md +docs/EnumClass.md +docs/EnumTest.md +docs/FakeApi.md +docs/FakeClassnameTags123Api.md +docs/FileSchemaTestClass.md +docs/Foo.md +docs/FormatTest.md +docs/HasOnlyReadOnly.md +docs/HealthCheckResult.md +docs/InlineObject.md +docs/InlineObject1.md +docs/InlineObject2.md +docs/InlineObject3.md +docs/InlineObject4.md +docs/InlineObject5.md +docs/InlineResponseDefault.md +docs/List.md +docs/MapTest.md +docs/MixedPropertiesAndAdditionalPropertiesClass.md +docs/Name.md +docs/NullableClass.md +docs/NumberOnly.md +docs/Order.md +docs/OuterComposite.md +docs/OuterEnum.md +docs/OuterEnumDefaultValue.md +docs/OuterEnumInteger.md +docs/OuterEnumIntegerDefaultValue.md +docs/Pet.md +docs/PetApi.md +docs/ReadOnlyFirst.md +docs/Return.md +docs/SpecialModelName.md +docs/StoreApi.md +docs/Tag.md +docs/User.md +docs/UserApi.md +settings.gradle +src/main/kotlin/org/openapitools/client/apis/AnotherFakeApi.kt +src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt +src/main/kotlin/org/openapitools/client/apis/FakeApi.kt +src/main/kotlin/org/openapitools/client/apis/FakeClassnameTags123Api.kt +src/main/kotlin/org/openapitools/client/apis/PetApi.kt +src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +src/main/kotlin/org/openapitools/client/apis/UserApi.kt +src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt +src/main/kotlin/org/openapitools/client/infrastructure/ByteArrayAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/CollectionFormats.kt +src/main/kotlin/org/openapitools/client/infrastructure/DateAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/LocalDateAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/LocalDateTimeAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/OffsetDateTimeAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt +src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt +src/main/kotlin/org/openapitools/client/models/Animal.kt +src/main/kotlin/org/openapitools/client/models/ApiResponse.kt +src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt +src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt +src/main/kotlin/org/openapitools/client/models/ArrayTest.kt +src/main/kotlin/org/openapitools/client/models/Capitalization.kt +src/main/kotlin/org/openapitools/client/models/Cat.kt +src/main/kotlin/org/openapitools/client/models/CatAllOf.kt +src/main/kotlin/org/openapitools/client/models/Category.kt +src/main/kotlin/org/openapitools/client/models/ClassModel.kt +src/main/kotlin/org/openapitools/client/models/Client.kt +src/main/kotlin/org/openapitools/client/models/Dog.kt +src/main/kotlin/org/openapitools/client/models/DogAllOf.kt +src/main/kotlin/org/openapitools/client/models/EnumArrays.kt +src/main/kotlin/org/openapitools/client/models/EnumClass.kt +src/main/kotlin/org/openapitools/client/models/EnumTest.kt +src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt +src/main/kotlin/org/openapitools/client/models/Foo.kt +src/main/kotlin/org/openapitools/client/models/FormatTest.kt +src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt +src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt +src/main/kotlin/org/openapitools/client/models/InlineObject.kt +src/main/kotlin/org/openapitools/client/models/InlineObject1.kt +src/main/kotlin/org/openapitools/client/models/InlineObject2.kt +src/main/kotlin/org/openapitools/client/models/InlineObject3.kt +src/main/kotlin/org/openapitools/client/models/InlineObject4.kt +src/main/kotlin/org/openapitools/client/models/InlineObject5.kt +src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt +src/main/kotlin/org/openapitools/client/models/List.kt +src/main/kotlin/org/openapitools/client/models/MapTest.kt +src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt +src/main/kotlin/org/openapitools/client/models/Model200Response.kt +src/main/kotlin/org/openapitools/client/models/Name.kt +src/main/kotlin/org/openapitools/client/models/NullableClass.kt +src/main/kotlin/org/openapitools/client/models/NumberOnly.kt +src/main/kotlin/org/openapitools/client/models/Order.kt +src/main/kotlin/org/openapitools/client/models/OuterComposite.kt +src/main/kotlin/org/openapitools/client/models/OuterEnum.kt +src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt +src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt +src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt +src/main/kotlin/org/openapitools/client/models/Pet.kt +src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt +src/main/kotlin/org/openapitools/client/models/Return.kt +src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt +src/main/kotlin/org/openapitools/client/models/Tag.kt +src/main/kotlin/org/openapitools/client/models/User.kt diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/.openapi-generator/VERSION b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/.openapi-generator/VERSION index b5d898602c2c..d99e7162d01f 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/.openapi-generator/VERSION +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/.openapi-generator/VERSION @@ -1 +1 @@ -4.3.1-SNAPSHOT \ No newline at end of file +5.0.0-SNAPSHOT \ No newline at end of file diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/FakeApi.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/FakeApi.md index fb663183f929..0a28947aa843 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/FakeApi.md @@ -551,13 +551,13 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **enumHeaderStringArray** | [**kotlin.Array<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)] + **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: >, $] - **enumQueryString** | **kotlin.String**| Query parameter enum test (string) | [optional] [default to '-efg'] [enum: _abc, -efg, (xyz)] + **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: >, $] - **enumFormString** | **kotlin.String**| Form parameter enum test (string) | [optional] [default to '-efg'] [enum: _abc, -efg, (xyz)] + **enumFormStringArray** | [**kotlin.Array<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 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 6d216739f0b2..04e474059f25 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 @@ -26,9 +26,9 @@ data class AdditionalPropertiesClass ( @SerializedName("map_of_map_property") val mapOfMapProperty: kotlin.collections.Map>? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Animal.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Animal.kt index 86992f00d6a6..59234b2684f5 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 @@ -21,9 +21,9 @@ import java.io.Serializable */ interface Animal : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } @get:SerializedName("className") val className: kotlin.String 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 15ea8f6ce57a..4d49a464621a 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 @@ -29,9 +29,9 @@ data class ApiResponse ( @SerializedName("message") val message: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/ArrayOfArrayOfNumberOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt index 02723cb9dcd9..0c88337e9c1e 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 @@ -23,9 +23,9 @@ data class ArrayOfArrayOfNumberOnly ( @SerializedName("ArrayArrayNumber") val arrayArrayNumber: kotlin.Array>? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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 afde31b7ff41..4da5b8e6d5fb 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 @@ -23,9 +23,9 @@ data class ArrayOfNumberOnly ( @SerializedName("ArrayNumber") val arrayNumber: kotlin.Array? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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 d9946e24ba46..855cd60a3274 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 @@ -30,9 +30,9 @@ data class ArrayTest ( @SerializedName("array_array_of_model") val arrayArrayOfModel: kotlin.Array>? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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 a7c7d3c9a761..24e13278871b 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 @@ -39,9 +39,9 @@ data class Capitalization ( @SerializedName("ATT_NAME") val ATT_NAME: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Cat.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Cat.kt index 3c0b6063ce16..7470f2504322 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 @@ -31,9 +31,9 @@ data class Cat ( @SerializedName("declawed") val declawed: kotlin.Boolean? = null ) : Animal, Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/CatAllOf.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/CatAllOf.kt index 7b42c1e2f515..17d5df7c0db1 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 @@ -23,9 +23,9 @@ data class CatAllOf ( @SerializedName("declawed") val declawed: kotlin.Boolean? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Category.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Category.kt index eddd17dc0231..6bfa3b0d01fb 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 @@ -26,9 +26,9 @@ data class Category ( @SerializedName("id") val id: kotlin.Long? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/ClassModel.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/ClassModel.kt index d4ca6d612415..174d49148f0d 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 @@ -23,9 +23,9 @@ data class ClassModel ( @SerializedName("_class") val propertyClass: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Client.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Client.kt index 2823f40b88b5..31fa6e51bf7b 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 @@ -23,9 +23,9 @@ data class Client ( @SerializedName("client") val client: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Dog.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Dog.kt index fbc06cf1dd61..7965fadd703c 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 @@ -31,9 +31,9 @@ data class Dog ( @SerializedName("breed") val breed: kotlin.String? = null ) : Animal, Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/DogAllOf.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/DogAllOf.kt index c422756a65fa..d67d72c09671 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 @@ -23,9 +23,9 @@ data class DogAllOf ( @SerializedName("breed") val breed: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/EnumArrays.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/EnumArrays.kt index 8ffe63f244b1..d4ffb01a388d 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 @@ -26,9 +26,9 @@ data class EnumArrays ( @SerializedName("array_enum") val arrayEnum: kotlin.Array? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/EnumClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/EnumClass.kt index 2eccf5d72fa7..f5edeb3710f4 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/EnumClass.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/EnumClass.kt @@ -35,11 +35,11 @@ enum class EnumClass(val value: kotlin.String){ - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value } 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 a939ed3f41ac..507fbaa3c059 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 @@ -48,9 +48,9 @@ data class EnumTest ( @SerializedName("outerEnumIntegerDefaultValue") val outerEnumIntegerDefaultValue: OuterEnumIntegerDefaultValue? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/FileSchemaTestClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt index 8ccd536e097a..1511af5d49b2 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 @@ -26,9 +26,9 @@ data class FileSchemaTestClass ( @SerializedName("files") val files: kotlin.Array? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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 eac43b985250..1ca746f908c3 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 @@ -23,9 +23,9 @@ data class Foo ( @SerializedName("bar") val bar: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/FormatTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/FormatTest.kt index f8f4fd031287..5b9be0b89c01 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 @@ -67,9 +67,9 @@ data class FormatTest ( @SerializedName("pattern_with_digits_and_delimiter") val patternWithDigitsAndDelimiter: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/HasOnlyReadOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt index e70f33609981..7608a258ae5f 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 @@ -26,9 +26,9 @@ data class HasOnlyReadOnly ( @SerializedName("foo") val foo: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/HealthCheckResult.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt index 5ea4977b7cb5..9e5a085a2c01 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 @@ -23,9 +23,9 @@ data class HealthCheckResult ( @SerializedName("NullableMessage") val nullableMessage: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/InlineObject.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject.kt index e513221c62ba..d75c0ded4369 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 @@ -28,9 +28,9 @@ data class InlineObject ( @SerializedName("status") val status: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/InlineObject1.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject1.kt index 183929c471fe..1f26364b834e 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 @@ -28,9 +28,9 @@ data class InlineObject1 ( @SerializedName("file") val file: java.io.File? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/InlineObject2.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject2.kt index 29c4d228fd8c..57634dd3f5a2 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 @@ -28,9 +28,9 @@ data class InlineObject2 ( @SerializedName("enum_form_string") val enumFormString: InlineObject2.EnumFormString? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } /** * Form parameter enum test (string array) 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 a5734ebed46d..f70af3efc5a3 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 @@ -76,9 +76,9 @@ data class InlineObject3 ( @SerializedName("callback") val callback: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/InlineObject4.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject4.kt index 488f57faff3d..5c38c52ba8d1 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 @@ -28,9 +28,9 @@ data class InlineObject4 ( @SerializedName("param2") val param2: kotlin.String ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/InlineObject5.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineObject5.kt index 1bd7d0c64b88..6389765702b9 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 @@ -28,9 +28,9 @@ data class InlineObject5 ( @SerializedName("additionalMetadata") val additionalMetadata: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/InlineResponseDefault.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt index 0252304ee847..e1d3c615222a 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 @@ -24,9 +24,9 @@ data class InlineResponseDefault ( @SerializedName("string") val string: Foo? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/List.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/List.kt index b7c9f9b029bb..1aa7715f047f 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 @@ -23,9 +23,9 @@ data class List ( @SerializedName("123-list") val `123minusList`: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/MapTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/MapTest.kt index 768f0a766039..9c0bef747fbd 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 @@ -32,9 +32,9 @@ data class MapTest ( @SerializedName("indirect_map") val indirectMap: kotlin.collections.Map? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/MixedPropertiesAndAdditionalPropertiesClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt index ec5c3ba8eadb..f1dda9dc0efe 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 @@ -30,9 +30,9 @@ data class MixedPropertiesAndAdditionalPropertiesClass ( @SerializedName("map") val map: kotlin.collections.Map? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Model200Response.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Model200Response.kt index b9506ce766f2..1bdb62d1b23b 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 @@ -26,9 +26,9 @@ data class Model200Response ( @SerializedName("class") val propertyClass: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Name.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Name.kt index a26df5946ca7..2e30b6b7cd95 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 @@ -32,9 +32,9 @@ data class Name ( @SerializedName("123Number") val `123number`: kotlin.Int? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/NullableClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/NullableClass.kt index 44ef32f26378..534bb572e4f1 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 @@ -56,9 +56,9 @@ data class NullableClass ( @SerializedName("object_items_nullable") val objectItemsNullable: kotlin.collections.Map? = null ) : kotlin.collections.HashMap(), Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/NumberOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/NumberOnly.kt index ca273d1f3a17..c7138f597e10 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 @@ -23,9 +23,9 @@ data class NumberOnly ( @SerializedName("JustNumber") val justNumber: java.math.BigDecimal? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Order.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Order.kt index e691b5ca8fbd..2a58f2be7c0d 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 @@ -39,9 +39,9 @@ data class Order ( @SerializedName("complete") val complete: kotlin.Boolean? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } /** * Order Status 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 8246390507ec..6303e05739bc 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 @@ -29,9 +29,9 @@ data class OuterComposite ( @SerializedName("my_boolean") val myBoolean: kotlin.Boolean? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/OuterEnum.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/OuterEnum.kt index 1c2c521eaf57..8d51cd4108b4 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/OuterEnum.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/OuterEnum.kt @@ -35,11 +35,11 @@ enum class OuterEnum(val value: kotlin.String){ - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value } diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt index 12c2b0a94aa3..980d368d0323 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt @@ -35,11 +35,11 @@ enum class OuterEnumDefaultValue(val value: kotlin.String){ - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value } diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt index c2ac6a4a936d..d5587936a8e9 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt @@ -35,11 +35,11 @@ enum class OuterEnumInteger(val value: kotlin.Int){ - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value.toString() } diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt index 3066cfbae73d..25a816fc4a80 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt @@ -35,11 +35,11 @@ enum class OuterEnumIntegerDefaultValue(val value: kotlin.Int){ - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value.toString() } 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 6e0b0b873d16..5865f9d672cd 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 @@ -41,9 +41,9 @@ data class Pet ( @SerializedName("status") val status: Pet.Status? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } /** * pet status in the store 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 5dff54dc190a..81c3bab8745e 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 @@ -26,9 +26,9 @@ data class ReadOnlyFirst ( @SerializedName("baz") val baz: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Return.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Return.kt index ecdce7f408fb..166cb5aa391c 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 @@ -23,9 +23,9 @@ data class Return ( @SerializedName("return") val `return`: kotlin.Int? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/SpecialModelname.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt index f67aa3c948b6..c9585969b251 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 @@ -23,9 +23,9 @@ data class SpecialModelname ( @SerializedName("\$special[property.name]") val dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket: kotlin.Long? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Tag.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/Tag.kt index 04ca19143287..e11be325ef39 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 @@ -26,9 +26,9 @@ data class Tag ( @SerializedName("name") val name: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/User.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/models/User.kt index 24b8c5d47ac2..433872af1e9c 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 @@ -45,9 +45,9 @@ data class User ( @SerializedName("userStatus") val userStatus: kotlin.Int? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/.openapi-generator/FILES b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/.openapi-generator/FILES new file mode 100644 index 000000000000..63cd1381e9d8 --- /dev/null +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/.openapi-generator/FILES @@ -0,0 +1,122 @@ +.openapi-generator-ignore +README.md +build.gradle +docs/200Response.md +docs/AdditionalPropertiesClass.md +docs/Animal.md +docs/AnotherFakeApi.md +docs/ApiResponse.md +docs/ArrayOfArrayOfNumberOnly.md +docs/ArrayOfNumberOnly.md +docs/ArrayTest.md +docs/Capitalization.md +docs/Cat.md +docs/CatAllOf.md +docs/Category.md +docs/ClassModel.md +docs/Client.md +docs/DefaultApi.md +docs/Dog.md +docs/DogAllOf.md +docs/EnumArrays.md +docs/EnumClass.md +docs/EnumTest.md +docs/FakeApi.md +docs/FakeClassnameTags123Api.md +docs/FileSchemaTestClass.md +docs/Foo.md +docs/FormatTest.md +docs/HasOnlyReadOnly.md +docs/HealthCheckResult.md +docs/InlineObject.md +docs/InlineObject1.md +docs/InlineObject2.md +docs/InlineObject3.md +docs/InlineObject4.md +docs/InlineObject5.md +docs/InlineResponseDefault.md +docs/List.md +docs/MapTest.md +docs/MixedPropertiesAndAdditionalPropertiesClass.md +docs/Name.md +docs/NullableClass.md +docs/NumberOnly.md +docs/Order.md +docs/OuterComposite.md +docs/OuterEnum.md +docs/OuterEnumDefaultValue.md +docs/OuterEnumInteger.md +docs/OuterEnumIntegerDefaultValue.md +docs/Pet.md +docs/PetApi.md +docs/ReadOnlyFirst.md +docs/Return.md +docs/SpecialModelName.md +docs/StoreApi.md +docs/Tag.md +docs/User.md +docs/UserApi.md +settings.gradle +src/main/kotlin/org/openapitools/client/apis/AnotherFakeApi.kt +src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt +src/main/kotlin/org/openapitools/client/apis/FakeApi.kt +src/main/kotlin/org/openapitools/client/apis/FakeClassnameTags123Api.kt +src/main/kotlin/org/openapitools/client/apis/PetApi.kt +src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +src/main/kotlin/org/openapitools/client/apis/UserApi.kt +src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt +src/main/kotlin/org/openapitools/client/infrastructure/ByteArrayAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/CollectionFormats.kt +src/main/kotlin/org/openapitools/client/infrastructure/DateAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/LocalDateAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/LocalDateTimeAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/OffsetDateTimeAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt +src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt +src/main/kotlin/org/openapitools/client/models/Animal.kt +src/main/kotlin/org/openapitools/client/models/ApiResponse.kt +src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt +src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt +src/main/kotlin/org/openapitools/client/models/ArrayTest.kt +src/main/kotlin/org/openapitools/client/models/Capitalization.kt +src/main/kotlin/org/openapitools/client/models/Cat.kt +src/main/kotlin/org/openapitools/client/models/CatAllOf.kt +src/main/kotlin/org/openapitools/client/models/Category.kt +src/main/kotlin/org/openapitools/client/models/ClassModel.kt +src/main/kotlin/org/openapitools/client/models/Client.kt +src/main/kotlin/org/openapitools/client/models/Dog.kt +src/main/kotlin/org/openapitools/client/models/DogAllOf.kt +src/main/kotlin/org/openapitools/client/models/EnumArrays.kt +src/main/kotlin/org/openapitools/client/models/EnumClass.kt +src/main/kotlin/org/openapitools/client/models/EnumTest.kt +src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt +src/main/kotlin/org/openapitools/client/models/Foo.kt +src/main/kotlin/org/openapitools/client/models/FormatTest.kt +src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt +src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt +src/main/kotlin/org/openapitools/client/models/InlineObject.kt +src/main/kotlin/org/openapitools/client/models/InlineObject1.kt +src/main/kotlin/org/openapitools/client/models/InlineObject2.kt +src/main/kotlin/org/openapitools/client/models/InlineObject3.kt +src/main/kotlin/org/openapitools/client/models/InlineObject4.kt +src/main/kotlin/org/openapitools/client/models/InlineObject5.kt +src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt +src/main/kotlin/org/openapitools/client/models/List.kt +src/main/kotlin/org/openapitools/client/models/MapTest.kt +src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt +src/main/kotlin/org/openapitools/client/models/Model200Response.kt +src/main/kotlin/org/openapitools/client/models/Name.kt +src/main/kotlin/org/openapitools/client/models/NullableClass.kt +src/main/kotlin/org/openapitools/client/models/NumberOnly.kt +src/main/kotlin/org/openapitools/client/models/Order.kt +src/main/kotlin/org/openapitools/client/models/OuterComposite.kt +src/main/kotlin/org/openapitools/client/models/OuterEnum.kt +src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt +src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt +src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt +src/main/kotlin/org/openapitools/client/models/Pet.kt +src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt +src/main/kotlin/org/openapitools/client/models/Return.kt +src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt +src/main/kotlin/org/openapitools/client/models/Tag.kt +src/main/kotlin/org/openapitools/client/models/User.kt diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/.openapi-generator/VERSION b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/.openapi-generator/VERSION index b5d898602c2c..d99e7162d01f 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/.openapi-generator/VERSION +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/.openapi-generator/VERSION @@ -1 +1 @@ -4.3.1-SNAPSHOT \ No newline at end of file +5.0.0-SNAPSHOT \ No newline at end of file diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/FakeApi.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/FakeApi.md index fb663183f929..0a28947aa843 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/FakeApi.md @@ -551,13 +551,13 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **enumHeaderStringArray** | [**kotlin.Array<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)] + **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: >, $] - **enumQueryString** | **kotlin.String**| Query parameter enum test (string) | [optional] [default to '-efg'] [enum: _abc, -efg, (xyz)] + **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: >, $] - **enumFormString** | **kotlin.String**| Form parameter enum test (string) | [optional] [default to '-efg'] [enum: _abc, -efg, (xyz)] + **enumFormStringArray** | [**kotlin.Array<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 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 6d216739f0b2..04e474059f25 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 @@ -26,9 +26,9 @@ data class AdditionalPropertiesClass ( @SerializedName("map_of_map_property") val mapOfMapProperty: kotlin.collections.Map>? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Animal.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Animal.kt index 86992f00d6a6..59234b2684f5 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 @@ -21,9 +21,9 @@ import java.io.Serializable */ interface Animal : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } @get:SerializedName("className") val className: kotlin.String 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 15ea8f6ce57a..4d49a464621a 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 @@ -29,9 +29,9 @@ data class ApiResponse ( @SerializedName("message") val message: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/ArrayOfArrayOfNumberOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt index 02723cb9dcd9..0c88337e9c1e 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 @@ -23,9 +23,9 @@ data class ArrayOfArrayOfNumberOnly ( @SerializedName("ArrayArrayNumber") val arrayArrayNumber: kotlin.Array>? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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 afde31b7ff41..4da5b8e6d5fb 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 @@ -23,9 +23,9 @@ data class ArrayOfNumberOnly ( @SerializedName("ArrayNumber") val arrayNumber: kotlin.Array? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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 d9946e24ba46..855cd60a3274 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 @@ -30,9 +30,9 @@ data class ArrayTest ( @SerializedName("array_array_of_model") val arrayArrayOfModel: kotlin.Array>? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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 a7c7d3c9a761..24e13278871b 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 @@ -39,9 +39,9 @@ data class Capitalization ( @SerializedName("ATT_NAME") val ATT_NAME: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Cat.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Cat.kt index 3c0b6063ce16..7470f2504322 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 @@ -31,9 +31,9 @@ data class Cat ( @SerializedName("declawed") val declawed: kotlin.Boolean? = null ) : Animal, Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/CatAllOf.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/CatAllOf.kt index 7b42c1e2f515..17d5df7c0db1 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 @@ -23,9 +23,9 @@ data class CatAllOf ( @SerializedName("declawed") val declawed: kotlin.Boolean? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Category.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Category.kt index eddd17dc0231..6bfa3b0d01fb 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 @@ -26,9 +26,9 @@ data class Category ( @SerializedName("id") val id: kotlin.Long? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/ClassModel.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/ClassModel.kt index d4ca6d612415..174d49148f0d 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 @@ -23,9 +23,9 @@ data class ClassModel ( @SerializedName("_class") val propertyClass: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Client.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Client.kt index 2823f40b88b5..31fa6e51bf7b 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 @@ -23,9 +23,9 @@ data class Client ( @SerializedName("client") val client: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Dog.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Dog.kt index fbc06cf1dd61..7965fadd703c 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 @@ -31,9 +31,9 @@ data class Dog ( @SerializedName("breed") val breed: kotlin.String? = null ) : Animal, Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/DogAllOf.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/DogAllOf.kt index c422756a65fa..d67d72c09671 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 @@ -23,9 +23,9 @@ data class DogAllOf ( @SerializedName("breed") val breed: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/EnumArrays.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/EnumArrays.kt index 8ffe63f244b1..d4ffb01a388d 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 @@ -26,9 +26,9 @@ data class EnumArrays ( @SerializedName("array_enum") val arrayEnum: kotlin.Array? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/EnumClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/EnumClass.kt index 2eccf5d72fa7..f5edeb3710f4 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/EnumClass.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/EnumClass.kt @@ -35,11 +35,11 @@ enum class EnumClass(val value: kotlin.String){ - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value } 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 a939ed3f41ac..507fbaa3c059 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 @@ -48,9 +48,9 @@ data class EnumTest ( @SerializedName("outerEnumIntegerDefaultValue") val outerEnumIntegerDefaultValue: OuterEnumIntegerDefaultValue? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/FileSchemaTestClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt index 8ccd536e097a..1511af5d49b2 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 @@ -26,9 +26,9 @@ data class FileSchemaTestClass ( @SerializedName("files") val files: kotlin.Array? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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 eac43b985250..1ca746f908c3 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 @@ -23,9 +23,9 @@ data class Foo ( @SerializedName("bar") val bar: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/FormatTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/FormatTest.kt index f8f4fd031287..5b9be0b89c01 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 @@ -67,9 +67,9 @@ data class FormatTest ( @SerializedName("pattern_with_digits_and_delimiter") val patternWithDigitsAndDelimiter: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/HasOnlyReadOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt index e70f33609981..7608a258ae5f 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 @@ -26,9 +26,9 @@ data class HasOnlyReadOnly ( @SerializedName("foo") val foo: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/HealthCheckResult.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt index 5ea4977b7cb5..9e5a085a2c01 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 @@ -23,9 +23,9 @@ data class HealthCheckResult ( @SerializedName("NullableMessage") val nullableMessage: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/InlineObject.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject.kt index e513221c62ba..d75c0ded4369 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 @@ -28,9 +28,9 @@ data class InlineObject ( @SerializedName("status") val status: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/InlineObject1.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject1.kt index 183929c471fe..1f26364b834e 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 @@ -28,9 +28,9 @@ data class InlineObject1 ( @SerializedName("file") val file: java.io.File? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/InlineObject2.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject2.kt index 29c4d228fd8c..57634dd3f5a2 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 @@ -28,9 +28,9 @@ data class InlineObject2 ( @SerializedName("enum_form_string") val enumFormString: InlineObject2.EnumFormString? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } /** * Form parameter enum test (string array) 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 a5734ebed46d..f70af3efc5a3 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 @@ -76,9 +76,9 @@ data class InlineObject3 ( @SerializedName("callback") val callback: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/InlineObject4.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject4.kt index 488f57faff3d..5c38c52ba8d1 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 @@ -28,9 +28,9 @@ data class InlineObject4 ( @SerializedName("param2") val param2: kotlin.String ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/InlineObject5.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineObject5.kt index 1bd7d0c64b88..6389765702b9 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 @@ -28,9 +28,9 @@ data class InlineObject5 ( @SerializedName("additionalMetadata") val additionalMetadata: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/InlineResponseDefault.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt index 0252304ee847..e1d3c615222a 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 @@ -24,9 +24,9 @@ data class InlineResponseDefault ( @SerializedName("string") val string: Foo? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/List.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/List.kt index b7c9f9b029bb..1aa7715f047f 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 @@ -23,9 +23,9 @@ data class List ( @SerializedName("123-list") val `123minusList`: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/MapTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/MapTest.kt index 768f0a766039..9c0bef747fbd 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 @@ -32,9 +32,9 @@ data class MapTest ( @SerializedName("indirect_map") val indirectMap: kotlin.collections.Map? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/MixedPropertiesAndAdditionalPropertiesClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt index ec5c3ba8eadb..f1dda9dc0efe 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 @@ -30,9 +30,9 @@ data class MixedPropertiesAndAdditionalPropertiesClass ( @SerializedName("map") val map: kotlin.collections.Map? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Model200Response.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Model200Response.kt index b9506ce766f2..1bdb62d1b23b 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 @@ -26,9 +26,9 @@ data class Model200Response ( @SerializedName("class") val propertyClass: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Name.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Name.kt index a26df5946ca7..2e30b6b7cd95 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 @@ -32,9 +32,9 @@ data class Name ( @SerializedName("123Number") val `123number`: kotlin.Int? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/NullableClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/NullableClass.kt index 44ef32f26378..534bb572e4f1 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 @@ -56,9 +56,9 @@ data class NullableClass ( @SerializedName("object_items_nullable") val objectItemsNullable: kotlin.collections.Map? = null ) : kotlin.collections.HashMap(), Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/NumberOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/NumberOnly.kt index ca273d1f3a17..c7138f597e10 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 @@ -23,9 +23,9 @@ data class NumberOnly ( @SerializedName("JustNumber") val justNumber: java.math.BigDecimal? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Order.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Order.kt index e691b5ca8fbd..2a58f2be7c0d 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 @@ -39,9 +39,9 @@ data class Order ( @SerializedName("complete") val complete: kotlin.Boolean? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } /** * Order Status 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 8246390507ec..6303e05739bc 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 @@ -29,9 +29,9 @@ data class OuterComposite ( @SerializedName("my_boolean") val myBoolean: kotlin.Boolean? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/OuterEnum.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnum.kt index 1c2c521eaf57..8d51cd4108b4 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnum.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnum.kt @@ -35,11 +35,11 @@ enum class OuterEnum(val value: kotlin.String){ - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value } diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt index 12c2b0a94aa3..980d368d0323 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt @@ -35,11 +35,11 @@ enum class OuterEnumDefaultValue(val value: kotlin.String){ - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value } diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt index c2ac6a4a936d..d5587936a8e9 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt @@ -35,11 +35,11 @@ enum class OuterEnumInteger(val value: kotlin.Int){ - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value.toString() } diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt index 3066cfbae73d..25a816fc4a80 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt @@ -35,11 +35,11 @@ enum class OuterEnumIntegerDefaultValue(val value: kotlin.Int){ - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value.toString() } 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 6e0b0b873d16..5865f9d672cd 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 @@ -41,9 +41,9 @@ data class Pet ( @SerializedName("status") val status: Pet.Status? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } /** * pet status in the store 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 5dff54dc190a..81c3bab8745e 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 @@ -26,9 +26,9 @@ data class ReadOnlyFirst ( @SerializedName("baz") val baz: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Return.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Return.kt index ecdce7f408fb..166cb5aa391c 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 @@ -23,9 +23,9 @@ data class Return ( @SerializedName("return") val `return`: kotlin.Int? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/SpecialModelname.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt index f67aa3c948b6..c9585969b251 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 @@ -23,9 +23,9 @@ data class SpecialModelname ( @SerializedName("\$special[property.name]") val dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket: kotlin.Long? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Tag.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/Tag.kt index 04ca19143287..e11be325ef39 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 @@ -26,9 +26,9 @@ data class Tag ( @SerializedName("name") val name: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/User.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/models/User.kt index 24b8c5d47ac2..433872af1e9c 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 @@ -45,9 +45,9 @@ data class User ( @SerializedName("userStatus") val userStatus: kotlin.Int? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/.openapi-generator/FILES b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/.openapi-generator/FILES new file mode 100644 index 000000000000..63cd1381e9d8 --- /dev/null +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/.openapi-generator/FILES @@ -0,0 +1,122 @@ +.openapi-generator-ignore +README.md +build.gradle +docs/200Response.md +docs/AdditionalPropertiesClass.md +docs/Animal.md +docs/AnotherFakeApi.md +docs/ApiResponse.md +docs/ArrayOfArrayOfNumberOnly.md +docs/ArrayOfNumberOnly.md +docs/ArrayTest.md +docs/Capitalization.md +docs/Cat.md +docs/CatAllOf.md +docs/Category.md +docs/ClassModel.md +docs/Client.md +docs/DefaultApi.md +docs/Dog.md +docs/DogAllOf.md +docs/EnumArrays.md +docs/EnumClass.md +docs/EnumTest.md +docs/FakeApi.md +docs/FakeClassnameTags123Api.md +docs/FileSchemaTestClass.md +docs/Foo.md +docs/FormatTest.md +docs/HasOnlyReadOnly.md +docs/HealthCheckResult.md +docs/InlineObject.md +docs/InlineObject1.md +docs/InlineObject2.md +docs/InlineObject3.md +docs/InlineObject4.md +docs/InlineObject5.md +docs/InlineResponseDefault.md +docs/List.md +docs/MapTest.md +docs/MixedPropertiesAndAdditionalPropertiesClass.md +docs/Name.md +docs/NullableClass.md +docs/NumberOnly.md +docs/Order.md +docs/OuterComposite.md +docs/OuterEnum.md +docs/OuterEnumDefaultValue.md +docs/OuterEnumInteger.md +docs/OuterEnumIntegerDefaultValue.md +docs/Pet.md +docs/PetApi.md +docs/ReadOnlyFirst.md +docs/Return.md +docs/SpecialModelName.md +docs/StoreApi.md +docs/Tag.md +docs/User.md +docs/UserApi.md +settings.gradle +src/main/kotlin/org/openapitools/client/apis/AnotherFakeApi.kt +src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt +src/main/kotlin/org/openapitools/client/apis/FakeApi.kt +src/main/kotlin/org/openapitools/client/apis/FakeClassnameTags123Api.kt +src/main/kotlin/org/openapitools/client/apis/PetApi.kt +src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +src/main/kotlin/org/openapitools/client/apis/UserApi.kt +src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt +src/main/kotlin/org/openapitools/client/infrastructure/ByteArrayAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/CollectionFormats.kt +src/main/kotlin/org/openapitools/client/infrastructure/DateAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/LocalDateAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/LocalDateTimeAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/OffsetDateTimeAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt +src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt +src/main/kotlin/org/openapitools/client/models/Animal.kt +src/main/kotlin/org/openapitools/client/models/ApiResponse.kt +src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt +src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt +src/main/kotlin/org/openapitools/client/models/ArrayTest.kt +src/main/kotlin/org/openapitools/client/models/Capitalization.kt +src/main/kotlin/org/openapitools/client/models/Cat.kt +src/main/kotlin/org/openapitools/client/models/CatAllOf.kt +src/main/kotlin/org/openapitools/client/models/Category.kt +src/main/kotlin/org/openapitools/client/models/ClassModel.kt +src/main/kotlin/org/openapitools/client/models/Client.kt +src/main/kotlin/org/openapitools/client/models/Dog.kt +src/main/kotlin/org/openapitools/client/models/DogAllOf.kt +src/main/kotlin/org/openapitools/client/models/EnumArrays.kt +src/main/kotlin/org/openapitools/client/models/EnumClass.kt +src/main/kotlin/org/openapitools/client/models/EnumTest.kt +src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt +src/main/kotlin/org/openapitools/client/models/Foo.kt +src/main/kotlin/org/openapitools/client/models/FormatTest.kt +src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt +src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt +src/main/kotlin/org/openapitools/client/models/InlineObject.kt +src/main/kotlin/org/openapitools/client/models/InlineObject1.kt +src/main/kotlin/org/openapitools/client/models/InlineObject2.kt +src/main/kotlin/org/openapitools/client/models/InlineObject3.kt +src/main/kotlin/org/openapitools/client/models/InlineObject4.kt +src/main/kotlin/org/openapitools/client/models/InlineObject5.kt +src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt +src/main/kotlin/org/openapitools/client/models/List.kt +src/main/kotlin/org/openapitools/client/models/MapTest.kt +src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt +src/main/kotlin/org/openapitools/client/models/Model200Response.kt +src/main/kotlin/org/openapitools/client/models/Name.kt +src/main/kotlin/org/openapitools/client/models/NullableClass.kt +src/main/kotlin/org/openapitools/client/models/NumberOnly.kt +src/main/kotlin/org/openapitools/client/models/Order.kt +src/main/kotlin/org/openapitools/client/models/OuterComposite.kt +src/main/kotlin/org/openapitools/client/models/OuterEnum.kt +src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt +src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt +src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt +src/main/kotlin/org/openapitools/client/models/Pet.kt +src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt +src/main/kotlin/org/openapitools/client/models/Return.kt +src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt +src/main/kotlin/org/openapitools/client/models/Tag.kt +src/main/kotlin/org/openapitools/client/models/User.kt diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/.openapi-generator/VERSION b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/.openapi-generator/VERSION index b5d898602c2c..d99e7162d01f 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/.openapi-generator/VERSION +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/.openapi-generator/VERSION @@ -1 +1 @@ -4.3.1-SNAPSHOT \ No newline at end of file +5.0.0-SNAPSHOT \ No newline at end of file diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/FakeApi.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/FakeApi.md index fb663183f929..0a28947aa843 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/FakeApi.md @@ -551,13 +551,13 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **enumHeaderStringArray** | [**kotlin.Array<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)] + **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: >, $] - **enumQueryString** | **kotlin.String**| Query parameter enum test (string) | [optional] [default to '-efg'] [enum: _abc, -efg, (xyz)] + **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: >, $] - **enumFormString** | **kotlin.String**| Form parameter enum test (string) | [optional] [default to '-efg'] [enum: _abc, -efg, (xyz)] + **enumFormStringArray** | [**kotlin.Array<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 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 6d216739f0b2..04e474059f25 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 @@ -26,9 +26,9 @@ data class AdditionalPropertiesClass ( @SerializedName("map_of_map_property") val mapOfMapProperty: kotlin.collections.Map>? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Animal.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Animal.kt index 86992f00d6a6..59234b2684f5 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 @@ -21,9 +21,9 @@ import java.io.Serializable */ interface Animal : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } @get:SerializedName("className") val className: kotlin.String 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 15ea8f6ce57a..4d49a464621a 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 @@ -29,9 +29,9 @@ data class ApiResponse ( @SerializedName("message") val message: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/ArrayOfArrayOfNumberOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt index 02723cb9dcd9..0c88337e9c1e 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 @@ -23,9 +23,9 @@ data class ArrayOfArrayOfNumberOnly ( @SerializedName("ArrayArrayNumber") val arrayArrayNumber: kotlin.Array>? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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 afde31b7ff41..4da5b8e6d5fb 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 @@ -23,9 +23,9 @@ data class ArrayOfNumberOnly ( @SerializedName("ArrayNumber") val arrayNumber: kotlin.Array? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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 d9946e24ba46..855cd60a3274 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 @@ -30,9 +30,9 @@ data class ArrayTest ( @SerializedName("array_array_of_model") val arrayArrayOfModel: kotlin.Array>? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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 a7c7d3c9a761..24e13278871b 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 @@ -39,9 +39,9 @@ data class Capitalization ( @SerializedName("ATT_NAME") val ATT_NAME: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Cat.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Cat.kt index 3c0b6063ce16..7470f2504322 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 @@ -31,9 +31,9 @@ data class Cat ( @SerializedName("declawed") val declawed: kotlin.Boolean? = null ) : Animal, Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/CatAllOf.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/CatAllOf.kt index 7b42c1e2f515..17d5df7c0db1 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 @@ -23,9 +23,9 @@ data class CatAllOf ( @SerializedName("declawed") val declawed: kotlin.Boolean? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Category.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Category.kt index eddd17dc0231..6bfa3b0d01fb 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 @@ -26,9 +26,9 @@ data class Category ( @SerializedName("id") val id: kotlin.Long? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/ClassModel.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/ClassModel.kt index d4ca6d612415..174d49148f0d 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 @@ -23,9 +23,9 @@ data class ClassModel ( @SerializedName("_class") val propertyClass: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Client.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Client.kt index 2823f40b88b5..31fa6e51bf7b 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 @@ -23,9 +23,9 @@ data class Client ( @SerializedName("client") val client: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Dog.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Dog.kt index fbc06cf1dd61..7965fadd703c 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 @@ -31,9 +31,9 @@ data class Dog ( @SerializedName("breed") val breed: kotlin.String? = null ) : Animal, Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/DogAllOf.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/DogAllOf.kt index c422756a65fa..d67d72c09671 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 @@ -23,9 +23,9 @@ data class DogAllOf ( @SerializedName("breed") val breed: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/EnumArrays.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/EnumArrays.kt index 8ffe63f244b1..d4ffb01a388d 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 @@ -26,9 +26,9 @@ data class EnumArrays ( @SerializedName("array_enum") val arrayEnum: kotlin.Array? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/EnumClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/EnumClass.kt index 2eccf5d72fa7..f5edeb3710f4 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/EnumClass.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/EnumClass.kt @@ -35,11 +35,11 @@ enum class EnumClass(val value: kotlin.String){ - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value } 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 a939ed3f41ac..507fbaa3c059 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 @@ -48,9 +48,9 @@ data class EnumTest ( @SerializedName("outerEnumIntegerDefaultValue") val outerEnumIntegerDefaultValue: OuterEnumIntegerDefaultValue? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/FileSchemaTestClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt index 8ccd536e097a..1511af5d49b2 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 @@ -26,9 +26,9 @@ data class FileSchemaTestClass ( @SerializedName("files") val files: kotlin.Array? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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 eac43b985250..1ca746f908c3 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 @@ -23,9 +23,9 @@ data class Foo ( @SerializedName("bar") val bar: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/FormatTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/FormatTest.kt index f8f4fd031287..5b9be0b89c01 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 @@ -67,9 +67,9 @@ data class FormatTest ( @SerializedName("pattern_with_digits_and_delimiter") val patternWithDigitsAndDelimiter: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/HasOnlyReadOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt index e70f33609981..7608a258ae5f 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 @@ -26,9 +26,9 @@ data class HasOnlyReadOnly ( @SerializedName("foo") val foo: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/HealthCheckResult.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt index 5ea4977b7cb5..9e5a085a2c01 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 @@ -23,9 +23,9 @@ data class HealthCheckResult ( @SerializedName("NullableMessage") val nullableMessage: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/InlineObject.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject.kt index e513221c62ba..d75c0ded4369 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 @@ -28,9 +28,9 @@ data class InlineObject ( @SerializedName("status") val status: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/InlineObject1.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject1.kt index 183929c471fe..1f26364b834e 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 @@ -28,9 +28,9 @@ data class InlineObject1 ( @SerializedName("file") val file: java.io.File? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/InlineObject2.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject2.kt index 29c4d228fd8c..57634dd3f5a2 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 @@ -28,9 +28,9 @@ data class InlineObject2 ( @SerializedName("enum_form_string") val enumFormString: InlineObject2.EnumFormString? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } /** * Form parameter enum test (string array) 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 a5734ebed46d..f70af3efc5a3 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 @@ -76,9 +76,9 @@ data class InlineObject3 ( @SerializedName("callback") val callback: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/InlineObject4.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject4.kt index 488f57faff3d..5c38c52ba8d1 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 @@ -28,9 +28,9 @@ data class InlineObject4 ( @SerializedName("param2") val param2: kotlin.String ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/InlineObject5.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineObject5.kt index 1bd7d0c64b88..6389765702b9 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 @@ -28,9 +28,9 @@ data class InlineObject5 ( @SerializedName("additionalMetadata") val additionalMetadata: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/InlineResponseDefault.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt index 0252304ee847..e1d3c615222a 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 @@ -24,9 +24,9 @@ data class InlineResponseDefault ( @SerializedName("string") val string: Foo? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/List.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/List.kt index b7c9f9b029bb..1aa7715f047f 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 @@ -23,9 +23,9 @@ data class List ( @SerializedName("123-list") val `123minusList`: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/MapTest.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/MapTest.kt index 768f0a766039..9c0bef747fbd 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 @@ -32,9 +32,9 @@ data class MapTest ( @SerializedName("indirect_map") val indirectMap: kotlin.collections.Map? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/MixedPropertiesAndAdditionalPropertiesClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt index ec5c3ba8eadb..f1dda9dc0efe 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 @@ -30,9 +30,9 @@ data class MixedPropertiesAndAdditionalPropertiesClass ( @SerializedName("map") val map: kotlin.collections.Map? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Model200Response.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Model200Response.kt index b9506ce766f2..1bdb62d1b23b 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 @@ -26,9 +26,9 @@ data class Model200Response ( @SerializedName("class") val propertyClass: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Name.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Name.kt index a26df5946ca7..2e30b6b7cd95 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 @@ -32,9 +32,9 @@ data class Name ( @SerializedName("123Number") val `123number`: kotlin.Int? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/NullableClass.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/NullableClass.kt index 44ef32f26378..534bb572e4f1 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 @@ -56,9 +56,9 @@ data class NullableClass ( @SerializedName("object_items_nullable") val objectItemsNullable: kotlin.collections.Map? = null ) : kotlin.collections.HashMap(), Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/NumberOnly.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/NumberOnly.kt index ca273d1f3a17..c7138f597e10 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 @@ -23,9 +23,9 @@ data class NumberOnly ( @SerializedName("JustNumber") val justNumber: java.math.BigDecimal? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Order.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Order.kt index e691b5ca8fbd..2a58f2be7c0d 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 @@ -39,9 +39,9 @@ data class Order ( @SerializedName("complete") val complete: kotlin.Boolean? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } /** * Order Status 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 8246390507ec..6303e05739bc 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 @@ -29,9 +29,9 @@ data class OuterComposite ( @SerializedName("my_boolean") val myBoolean: kotlin.Boolean? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/OuterEnum.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnum.kt index 1c2c521eaf57..8d51cd4108b4 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnum.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnum.kt @@ -35,11 +35,11 @@ enum class OuterEnum(val value: kotlin.String){ - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value } diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt index 12c2b0a94aa3..980d368d0323 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt @@ -35,11 +35,11 @@ enum class OuterEnumDefaultValue(val value: kotlin.String){ - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value } diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt index c2ac6a4a936d..d5587936a8e9 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt @@ -35,11 +35,11 @@ enum class OuterEnumInteger(val value: kotlin.Int){ - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value.toString() } diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt index 3066cfbae73d..25a816fc4a80 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt @@ -35,11 +35,11 @@ enum class OuterEnumIntegerDefaultValue(val value: kotlin.Int){ - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value.toString() } 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 6e0b0b873d16..5865f9d672cd 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 @@ -41,9 +41,9 @@ data class Pet ( @SerializedName("status") val status: Pet.Status? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } /** * pet status in the store 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 5dff54dc190a..81c3bab8745e 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 @@ -26,9 +26,9 @@ data class ReadOnlyFirst ( @SerializedName("baz") val baz: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Return.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Return.kt index ecdce7f408fb..166cb5aa391c 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 @@ -23,9 +23,9 @@ data class Return ( @SerializedName("return") val `return`: kotlin.Int? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/SpecialModelname.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt index f67aa3c948b6..c9585969b251 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 @@ -23,9 +23,9 @@ data class SpecialModelname ( @SerializedName("\$special[property.name]") val dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket: kotlin.Long? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/Tag.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/Tag.kt index 04ca19143287..e11be325ef39 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 @@ -26,9 +26,9 @@ data class Tag ( @SerializedName("name") val name: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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/User.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/models/User.kt index 24b8c5d47ac2..433872af1e9c 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 @@ -45,9 +45,9 @@ data class User ( @SerializedName("userStatus") val userStatus: kotlin.Int? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/.openapi-generator/FILES b/samples/openapi3/client/petstore/kotlin-multiplatform/.openapi-generator/FILES new file mode 100644 index 000000000000..542bb6338fff --- /dev/null +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/.openapi-generator/FILES @@ -0,0 +1,135 @@ +.openapi-generator-ignore +README.md +build.gradle +docs/200Response.md +docs/AdditionalPropertiesClass.md +docs/Animal.md +docs/AnotherFakeApi.md +docs/ApiResponse.md +docs/ArrayOfArrayOfNumberOnly.md +docs/ArrayOfNumberOnly.md +docs/ArrayTest.md +docs/Capitalization.md +docs/Cat.md +docs/CatAllOf.md +docs/Category.md +docs/ClassModel.md +docs/Client.md +docs/DefaultApi.md +docs/Dog.md +docs/DogAllOf.md +docs/EnumArrays.md +docs/EnumClass.md +docs/EnumTest.md +docs/FakeApi.md +docs/FakeClassnameTags123Api.md +docs/FileSchemaTestClass.md +docs/Foo.md +docs/FormatTest.md +docs/HasOnlyReadOnly.md +docs/HealthCheckResult.md +docs/InlineObject.md +docs/InlineObject1.md +docs/InlineObject2.md +docs/InlineObject3.md +docs/InlineObject4.md +docs/InlineObject5.md +docs/InlineResponseDefault.md +docs/List.md +docs/MapTest.md +docs/MixedPropertiesAndAdditionalPropertiesClass.md +docs/Name.md +docs/NullableClass.md +docs/NumberOnly.md +docs/Order.md +docs/OuterComposite.md +docs/OuterEnum.md +docs/OuterEnumDefaultValue.md +docs/OuterEnumInteger.md +docs/OuterEnumIntegerDefaultValue.md +docs/Pet.md +docs/PetApi.md +docs/ReadOnlyFirst.md +docs/Return.md +docs/SpecialModelName.md +docs/StoreApi.md +docs/Tag.md +docs/User.md +docs/UserApi.md +gradle/wrapper/gradle-wrapper.jar +gradle/wrapper/gradle-wrapper.properties +gradlew +gradlew.bat +settings.gradle +src/commonMain/kotlin/org/openapitools/client/apis/AnotherFakeApi.kt +src/commonMain/kotlin/org/openapitools/client/apis/DefaultApi.kt +src/commonMain/kotlin/org/openapitools/client/apis/FakeApi.kt +src/commonMain/kotlin/org/openapitools/client/apis/FakeClassnameTags123Api.kt +src/commonMain/kotlin/org/openapitools/client/apis/PetApi.kt +src/commonMain/kotlin/org/openapitools/client/apis/StoreApi.kt +src/commonMain/kotlin/org/openapitools/client/apis/UserApi.kt +src/commonMain/kotlin/org/openapitools/client/auth/ApiKeyAuth.kt +src/commonMain/kotlin/org/openapitools/client/auth/Authentication.kt +src/commonMain/kotlin/org/openapitools/client/auth/HttpBasicAuth.kt +src/commonMain/kotlin/org/openapitools/client/auth/HttpBearerAuth.kt +src/commonMain/kotlin/org/openapitools/client/auth/OAuth.kt +src/commonMain/kotlin/org/openapitools/client/infrastructure/ApiAbstractions.kt +src/commonMain/kotlin/org/openapitools/client/infrastructure/ApiClient.kt +src/commonMain/kotlin/org/openapitools/client/infrastructure/Base64ByteArray.kt +src/commonMain/kotlin/org/openapitools/client/infrastructure/Bytes.kt +src/commonMain/kotlin/org/openapitools/client/infrastructure/HttpResponse.kt +src/commonMain/kotlin/org/openapitools/client/infrastructure/OctetByteArray.kt +src/commonMain/kotlin/org/openapitools/client/infrastructure/RequestConfig.kt +src/commonMain/kotlin/org/openapitools/client/infrastructure/RequestMethod.kt +src/commonMain/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt +src/commonMain/kotlin/org/openapitools/client/models/Animal.kt +src/commonMain/kotlin/org/openapitools/client/models/ApiResponse.kt +src/commonMain/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt +src/commonMain/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt +src/commonMain/kotlin/org/openapitools/client/models/ArrayTest.kt +src/commonMain/kotlin/org/openapitools/client/models/Capitalization.kt +src/commonMain/kotlin/org/openapitools/client/models/Cat.kt +src/commonMain/kotlin/org/openapitools/client/models/CatAllOf.kt +src/commonMain/kotlin/org/openapitools/client/models/Category.kt +src/commonMain/kotlin/org/openapitools/client/models/ClassModel.kt +src/commonMain/kotlin/org/openapitools/client/models/Client.kt +src/commonMain/kotlin/org/openapitools/client/models/Dog.kt +src/commonMain/kotlin/org/openapitools/client/models/DogAllOf.kt +src/commonMain/kotlin/org/openapitools/client/models/EnumArrays.kt +src/commonMain/kotlin/org/openapitools/client/models/EnumClass.kt +src/commonMain/kotlin/org/openapitools/client/models/EnumTest.kt +src/commonMain/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt +src/commonMain/kotlin/org/openapitools/client/models/Foo.kt +src/commonMain/kotlin/org/openapitools/client/models/FormatTest.kt +src/commonMain/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt +src/commonMain/kotlin/org/openapitools/client/models/HealthCheckResult.kt +src/commonMain/kotlin/org/openapitools/client/models/InlineObject.kt +src/commonMain/kotlin/org/openapitools/client/models/InlineObject1.kt +src/commonMain/kotlin/org/openapitools/client/models/InlineObject2.kt +src/commonMain/kotlin/org/openapitools/client/models/InlineObject3.kt +src/commonMain/kotlin/org/openapitools/client/models/InlineObject4.kt +src/commonMain/kotlin/org/openapitools/client/models/InlineObject5.kt +src/commonMain/kotlin/org/openapitools/client/models/InlineResponseDefault.kt +src/commonMain/kotlin/org/openapitools/client/models/List.kt +src/commonMain/kotlin/org/openapitools/client/models/MapTest.kt +src/commonMain/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt +src/commonMain/kotlin/org/openapitools/client/models/Model200Response.kt +src/commonMain/kotlin/org/openapitools/client/models/Name.kt +src/commonMain/kotlin/org/openapitools/client/models/NullableClass.kt +src/commonMain/kotlin/org/openapitools/client/models/NumberOnly.kt +src/commonMain/kotlin/org/openapitools/client/models/Order.kt +src/commonMain/kotlin/org/openapitools/client/models/OuterComposite.kt +src/commonMain/kotlin/org/openapitools/client/models/OuterEnum.kt +src/commonMain/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt +src/commonMain/kotlin/org/openapitools/client/models/OuterEnumInteger.kt +src/commonMain/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt +src/commonMain/kotlin/org/openapitools/client/models/Pet.kt +src/commonMain/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt +src/commonMain/kotlin/org/openapitools/client/models/Return.kt +src/commonMain/kotlin/org/openapitools/client/models/SpecialModelname.kt +src/commonMain/kotlin/org/openapitools/client/models/Tag.kt +src/commonMain/kotlin/org/openapitools/client/models/User.kt +src/commonTest/kotlin/util/Coroutine.kt +src/iosTest/kotlin/util/Coroutine.kt +src/jsTest/kotlin/util/Coroutine.kt +src/jvmTest/kotlin/util/Coroutine.kt diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/.openapi-generator/VERSION b/samples/openapi3/client/petstore/kotlin-multiplatform/.openapi-generator/VERSION index b5d898602c2c..d99e7162d01f 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/.openapi-generator/VERSION +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/.openapi-generator/VERSION @@ -1 +1 @@ -4.3.1-SNAPSHOT \ No newline at end of file +5.0.0-SNAPSHOT \ No newline at end of file diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/FakeApi.md b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/FakeApi.md index dcb60194b742..2e4b0f90ffac 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/FakeApi.md @@ -551,13 +551,13 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **enumHeaderStringArray** | [**kotlin.Array<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)] + **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: >, $] - **enumQueryString** | **kotlin.String**| Query parameter enum test (string) | [optional] [default to '-efg'] [enum: _abc, -efg, (xyz)] + **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: >, $] - **enumFormString** | **kotlin.String**| Form parameter enum test (string) | [optional] [default to '-efg'] [enum: _abc, -efg, (xyz)] + **enumFormStringArray** | [**kotlin.Array<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 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 2c6137b87896..886ca115d4af 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/FakeApi.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/FakeApi.kt index 06e0a8ba2d86..0232be74fe15 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 @@ -405,13 +405,13 @@ 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 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 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') + * @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 { diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/EnumClass.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/EnumClass.kt index 56dd36107415..b75078db4ab6 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/EnumClass.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/EnumClass.kt @@ -33,11 +33,11 @@ enum class EnumClass(val value: kotlin.String){ - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value } diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/OuterEnum.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/OuterEnum.kt index 4d7279546667..c07437b2387c 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/OuterEnum.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/OuterEnum.kt @@ -33,11 +33,11 @@ enum class OuterEnum(val value: kotlin.String){ - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value } diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt index d818ad3a459e..cacf26925d58 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt @@ -33,11 +33,11 @@ enum class OuterEnumDefaultValue(val value: kotlin.String){ - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value } diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/OuterEnumInteger.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/OuterEnumInteger.kt index 19973003776f..a37705dc6e71 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/OuterEnumInteger.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/OuterEnumInteger.kt @@ -33,11 +33,11 @@ enum class OuterEnumInteger(val value: kotlin.Int){ - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value.toString() } diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt index a46a90efb071..8667ea543c34 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt @@ -33,11 +33,11 @@ enum class OuterEnumIntegerDefaultValue(val value: kotlin.Int){ - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value.toString() } diff --git a/samples/openapi3/client/petstore/kotlin/.openapi-generator/FILES b/samples/openapi3/client/petstore/kotlin/.openapi-generator/FILES new file mode 100644 index 000000000000..535d2438cfdf --- /dev/null +++ b/samples/openapi3/client/petstore/kotlin/.openapi-generator/FILES @@ -0,0 +1,128 @@ +.openapi-generator-ignore +README.md +build.gradle +docs/200Response.md +docs/AdditionalPropertiesClass.md +docs/Animal.md +docs/AnotherFakeApi.md +docs/ApiResponse.md +docs/ArrayOfArrayOfNumberOnly.md +docs/ArrayOfNumberOnly.md +docs/ArrayTest.md +docs/Capitalization.md +docs/Cat.md +docs/CatAllOf.md +docs/Category.md +docs/ClassModel.md +docs/Client.md +docs/DefaultApi.md +docs/Dog.md +docs/DogAllOf.md +docs/EnumArrays.md +docs/EnumClass.md +docs/EnumTest.md +docs/FakeApi.md +docs/FakeClassnameTags123Api.md +docs/FileSchemaTestClass.md +docs/Foo.md +docs/FormatTest.md +docs/HasOnlyReadOnly.md +docs/HealthCheckResult.md +docs/InlineObject.md +docs/InlineObject1.md +docs/InlineObject2.md +docs/InlineObject3.md +docs/InlineObject4.md +docs/InlineObject5.md +docs/InlineResponseDefault.md +docs/List.md +docs/MapTest.md +docs/MixedPropertiesAndAdditionalPropertiesClass.md +docs/Name.md +docs/NullableClass.md +docs/NumberOnly.md +docs/Order.md +docs/OuterComposite.md +docs/OuterEnum.md +docs/OuterEnumDefaultValue.md +docs/OuterEnumInteger.md +docs/OuterEnumIntegerDefaultValue.md +docs/Pet.md +docs/PetApi.md +docs/ReadOnlyFirst.md +docs/Return.md +docs/SpecialModelName.md +docs/StoreApi.md +docs/Tag.md +docs/User.md +docs/UserApi.md +settings.gradle +src/main/kotlin/org/openapitools/client/apis/AnotherFakeApi.kt +src/main/kotlin/org/openapitools/client/apis/DefaultApi.kt +src/main/kotlin/org/openapitools/client/apis/FakeApi.kt +src/main/kotlin/org/openapitools/client/apis/FakeClassnameTags123Api.kt +src/main/kotlin/org/openapitools/client/apis/PetApi.kt +src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +src/main/kotlin/org/openapitools/client/apis/UserApi.kt +src/main/kotlin/org/openapitools/client/infrastructure/ApiAbstractions.kt +src/main/kotlin/org/openapitools/client/infrastructure/ApiClient.kt +src/main/kotlin/org/openapitools/client/infrastructure/ApiInfrastructureResponse.kt +src/main/kotlin/org/openapitools/client/infrastructure/ApplicationDelegates.kt +src/main/kotlin/org/openapitools/client/infrastructure/ByteArrayAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/Errors.kt +src/main/kotlin/org/openapitools/client/infrastructure/LocalDateAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/LocalDateTimeAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/OffsetDateTimeAdapter.kt +src/main/kotlin/org/openapitools/client/infrastructure/RequestConfig.kt +src/main/kotlin/org/openapitools/client/infrastructure/RequestMethod.kt +src/main/kotlin/org/openapitools/client/infrastructure/ResponseExtensions.kt +src/main/kotlin/org/openapitools/client/infrastructure/Serializer.kt +src/main/kotlin/org/openapitools/client/infrastructure/UUIDAdapter.kt +src/main/kotlin/org/openapitools/client/models/AdditionalPropertiesClass.kt +src/main/kotlin/org/openapitools/client/models/Animal.kt +src/main/kotlin/org/openapitools/client/models/ApiResponse.kt +src/main/kotlin/org/openapitools/client/models/ArrayOfArrayOfNumberOnly.kt +src/main/kotlin/org/openapitools/client/models/ArrayOfNumberOnly.kt +src/main/kotlin/org/openapitools/client/models/ArrayTest.kt +src/main/kotlin/org/openapitools/client/models/Capitalization.kt +src/main/kotlin/org/openapitools/client/models/Cat.kt +src/main/kotlin/org/openapitools/client/models/CatAllOf.kt +src/main/kotlin/org/openapitools/client/models/Category.kt +src/main/kotlin/org/openapitools/client/models/ClassModel.kt +src/main/kotlin/org/openapitools/client/models/Client.kt +src/main/kotlin/org/openapitools/client/models/Dog.kt +src/main/kotlin/org/openapitools/client/models/DogAllOf.kt +src/main/kotlin/org/openapitools/client/models/EnumArrays.kt +src/main/kotlin/org/openapitools/client/models/EnumClass.kt +src/main/kotlin/org/openapitools/client/models/EnumTest.kt +src/main/kotlin/org/openapitools/client/models/FileSchemaTestClass.kt +src/main/kotlin/org/openapitools/client/models/Foo.kt +src/main/kotlin/org/openapitools/client/models/FormatTest.kt +src/main/kotlin/org/openapitools/client/models/HasOnlyReadOnly.kt +src/main/kotlin/org/openapitools/client/models/HealthCheckResult.kt +src/main/kotlin/org/openapitools/client/models/InlineObject.kt +src/main/kotlin/org/openapitools/client/models/InlineObject1.kt +src/main/kotlin/org/openapitools/client/models/InlineObject2.kt +src/main/kotlin/org/openapitools/client/models/InlineObject3.kt +src/main/kotlin/org/openapitools/client/models/InlineObject4.kt +src/main/kotlin/org/openapitools/client/models/InlineObject5.kt +src/main/kotlin/org/openapitools/client/models/InlineResponseDefault.kt +src/main/kotlin/org/openapitools/client/models/List.kt +src/main/kotlin/org/openapitools/client/models/MapTest.kt +src/main/kotlin/org/openapitools/client/models/MixedPropertiesAndAdditionalPropertiesClass.kt +src/main/kotlin/org/openapitools/client/models/Model200Response.kt +src/main/kotlin/org/openapitools/client/models/Name.kt +src/main/kotlin/org/openapitools/client/models/NullableClass.kt +src/main/kotlin/org/openapitools/client/models/NumberOnly.kt +src/main/kotlin/org/openapitools/client/models/Order.kt +src/main/kotlin/org/openapitools/client/models/OuterComposite.kt +src/main/kotlin/org/openapitools/client/models/OuterEnum.kt +src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt +src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt +src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt +src/main/kotlin/org/openapitools/client/models/Pet.kt +src/main/kotlin/org/openapitools/client/models/ReadOnlyFirst.kt +src/main/kotlin/org/openapitools/client/models/Return.kt +src/main/kotlin/org/openapitools/client/models/SpecialModelname.kt +src/main/kotlin/org/openapitools/client/models/Tag.kt +src/main/kotlin/org/openapitools/client/models/User.kt diff --git a/samples/openapi3/client/petstore/kotlin/.openapi-generator/VERSION b/samples/openapi3/client/petstore/kotlin/.openapi-generator/VERSION index b5d898602c2c..d99e7162d01f 100644 --- a/samples/openapi3/client/petstore/kotlin/.openapi-generator/VERSION +++ b/samples/openapi3/client/petstore/kotlin/.openapi-generator/VERSION @@ -1 +1 @@ -4.3.1-SNAPSHOT \ No newline at end of file +5.0.0-SNAPSHOT \ No newline at end of file diff --git a/samples/openapi3/client/petstore/kotlin/docs/FakeApi.md b/samples/openapi3/client/petstore/kotlin/docs/FakeApi.md index fb663183f929..0a28947aa843 100644 --- a/samples/openapi3/client/petstore/kotlin/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/kotlin/docs/FakeApi.md @@ -551,13 +551,13 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **enumHeaderStringArray** | [**kotlin.Array<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)] + **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: >, $] - **enumQueryString** | **kotlin.String**| Query parameter enum test (string) | [optional] [default to '-efg'] [enum: _abc, -efg, (xyz)] + **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: >, $] - **enumFormString** | **kotlin.String**| Form parameter enum test (string) | [optional] [default to '-efg'] [enum: _abc, -efg, (xyz)] + **enumFormStringArray** | [**kotlin.Array<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 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 740608cb024d..e2847ef4c5f6 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 @@ -471,13 +471,13 @@ class FakeApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { * 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 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 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') + * @param enumFormStringArray Form parameter enum test (string array) (optional, default to "$") + * @param enumFormString Form parameter enum test (string) (optional, default to "-efg") * @return void * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response 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 b5d5deca904d..67d7955bb935 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 @@ -170,6 +170,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 { val localVariableBody: kotlin.Any? = null val localVariableQuery: MultiValueMap = 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 1c3490006341..42e82f668073 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 @@ -26,9 +26,9 @@ data class AdditionalPropertiesClass ( @Json(name = "map_of_map_property") val mapOfMapProperty: kotlin.collections.Map>? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 6e1d0820cc9c..71c88c15c35f 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 @@ -21,9 +21,9 @@ import java.io.Serializable */ interface Animal : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } @Json(name = "className") val className: kotlin.String 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 0a13c7737ed6..d6922e4d96c1 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 @@ -29,9 +29,9 @@ data class ApiResponse ( @Json(name = "message") val message: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 05ea7ceb7c8b..0b15c44c4cee 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 @@ -23,9 +23,9 @@ data class ArrayOfArrayOfNumberOnly ( @Json(name = "ArrayArrayNumber") val arrayArrayNumber: kotlin.Array>? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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 50a185a83e77..64257ddc92c4 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 @@ -23,9 +23,9 @@ data class ArrayOfNumberOnly ( @Json(name = "ArrayNumber") val arrayNumber: kotlin.Array? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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 9a9802727205..22441aba388b 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 @@ -30,9 +30,9 @@ data class ArrayTest ( @Json(name = "array_array_of_model") val arrayArrayOfModel: kotlin.Array>? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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 fb29c1748585..2e321905c3fd 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 @@ -39,9 +39,9 @@ data class Capitalization ( @Json(name = "ATT_NAME") val ATT_NAME: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 4fcd2af6a6f5..0d3fc6381c9c 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 @@ -31,9 +31,9 @@ data class Cat ( @Json(name = "declawed") val declawed: kotlin.Boolean? = null ) : Animal, Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 a40140de8413..7fec650f4bb9 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 @@ -23,9 +23,9 @@ data class CatAllOf ( @Json(name = "declawed") val declawed: kotlin.Boolean? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 fe0d03dce811..055ac892492c 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 @@ -26,9 +26,9 @@ data class Category ( @Json(name = "id") val id: kotlin.Long? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 fe0639b7fb19..919da5f0f487 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 @@ -23,9 +23,9 @@ data class ClassModel ( @Json(name = "_class") val propertyClass: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 201d4bbbd720..b766f9ba9f23 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 @@ -23,9 +23,9 @@ data class Client ( @Json(name = "client") val client: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 5ffd15879f8c..2e842529c4fc 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 @@ -31,9 +31,9 @@ data class Dog ( @Json(name = "breed") val breed: kotlin.String? = null ) : Animal, Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 019476d4f631..7f0059863271 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 @@ -23,9 +23,9 @@ data class DogAllOf ( @Json(name = "breed") val breed: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 8d9076e627fa..f4e145b600bc 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 @@ -26,9 +26,9 @@ data class EnumArrays ( @Json(name = "array_enum") val arrayEnum: kotlin.Array? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } /** * diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/EnumClass.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/EnumClass.kt index 8bd3f24f8295..c8090bb00c9a 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/EnumClass.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/EnumClass.kt @@ -35,11 +35,11 @@ enum class EnumClass(val value: kotlin.String){ - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value } 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 f2b499dedfc9..346cc493053b 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 @@ -48,9 +48,9 @@ data class EnumTest ( @Json(name = "outerEnumIntegerDefaultValue") val outerEnumIntegerDefaultValue: OuterEnumIntegerDefaultValue? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } /** * 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 877c970780fd..ae3a0c55ac25 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 @@ -26,9 +26,9 @@ data class FileSchemaTestClass ( @Json(name = "files") val files: kotlin.Array? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + 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 34baa08bfa04..d103385d685c 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 @@ -23,9 +23,9 @@ data class Foo ( @Json(name = "bar") val bar: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 5820c2f7b42b..3ef83ab19cba 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 @@ -67,9 +67,9 @@ data class FormatTest ( @Json(name = "pattern_with_digits_and_delimiter") val patternWithDigitsAndDelimiter: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 e3a09f94c965..807b7c846fb0 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 @@ -26,9 +26,9 @@ data class HasOnlyReadOnly ( @Json(name = "foo") val foo: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 ad7cfc23b6a6..4dde950bd728 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 @@ -23,9 +23,9 @@ data class HealthCheckResult ( @Json(name = "NullableMessage") val nullableMessage: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 70ac28e3d533..33175a232f63 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 @@ -28,9 +28,9 @@ data class InlineObject ( @Json(name = "status") val status: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 72806f05c967..7fd9544b7819 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 @@ -28,9 +28,9 @@ data class InlineObject1 ( @Json(name = "file") val file: java.io.File? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 43f87364d31b..d0c9b5b7160e 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 @@ -28,9 +28,9 @@ data class InlineObject2 ( @Json(name = "enum_form_string") val enumFormString: InlineObject2.EnumFormString? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } /** * Form parameter enum test (string array) 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 142b9b788d14..62bd57318c5c 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 @@ -76,9 +76,9 @@ data class InlineObject3 ( @Json(name = "callback") val callback: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 b380c4ce723e..d08e4105f848 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 @@ -28,9 +28,9 @@ data class InlineObject4 ( @Json(name = "param2") val param2: kotlin.String ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 80b8a1788f28..cd06eb38092c 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 @@ -28,9 +28,9 @@ data class InlineObject5 ( @Json(name = "additionalMetadata") val additionalMetadata: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 d78338d8a8f6..2284790d4220 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 @@ -24,9 +24,9 @@ data class InlineResponseDefault ( @Json(name = "string") val string: Foo? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 7840b6090391..c93bd427bf25 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 @@ -23,9 +23,9 @@ data class List ( @Json(name = "123-list") val `123minusList`: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 d3eae1e85ab9..960045349b31 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 @@ -32,9 +32,9 @@ data class MapTest ( @Json(name = "indirect_map") val indirectMap: kotlin.collections.Map? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } /** * 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 44844b5d0132..974cc9290412 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 @@ -30,9 +30,9 @@ data class MixedPropertiesAndAdditionalPropertiesClass ( @Json(name = "map") val map: kotlin.collections.Map? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 3c92defc46b5..c2773adff524 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 @@ -26,9 +26,9 @@ data class Model200Response ( @Json(name = "class") val propertyClass: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 544fdcc91aa4..916146269e73 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 @@ -32,9 +32,9 @@ data class Name ( @Json(name = "123Number") val `123number`: kotlin.Int? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 e5d9c43d2a59..c425afbd0744 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 @@ -56,9 +56,9 @@ data class NullableClass ( @Json(name = "object_items_nullable") val objectItemsNullable: kotlin.collections.Map? = null ) : kotlin.collections.HashMap(), Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 3bc4389e1cc4..bc8a0156c60c 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 @@ -23,9 +23,9 @@ data class NumberOnly ( @Json(name = "JustNumber") val justNumber: java.math.BigDecimal? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 a4e0ad8f52de..8d14c5b8d0e8 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 @@ -39,9 +39,9 @@ data class Order ( @Json(name = "complete") val complete: kotlin.Boolean? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } /** * Order Status 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 c22ad0b5f8fc..74ddae399302 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 @@ -29,9 +29,9 @@ data class OuterComposite ( @Json(name = "my_boolean") val myBoolean: kotlin.Boolean? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/OuterEnum.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/OuterEnum.kt index 6c5d370c87c4..ad7e1434a209 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/OuterEnum.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/OuterEnum.kt @@ -35,11 +35,11 @@ enum class OuterEnum(val value: kotlin.String){ - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value } diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt index f1c4a8624345..939ee4cb95c9 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/OuterEnumDefaultValue.kt @@ -35,11 +35,11 @@ enum class OuterEnumDefaultValue(val value: kotlin.String){ - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value } diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt index b8f161d126bd..447872e5353d 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/OuterEnumInteger.kt @@ -35,11 +35,11 @@ enum class OuterEnumInteger(val value: kotlin.Int){ - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value.toString() } diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt index 97c15f39a2c0..a98bd861c5ea 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/OuterEnumIntegerDefaultValue.kt @@ -35,11 +35,11 @@ enum class OuterEnumIntegerDefaultValue(val value: kotlin.Int){ - /** - This override toString avoids using the enum var name and uses the actual api value instead. - In cases the var name and value are different, the client would send incorrect enums to the server. - **/ - override fun toString(): String { + /** + This override toString avoids using the enum var name and uses the actual api value instead. + In cases the var name and value are different, the client would send incorrect enums to the server. + **/ + override fun toString(): String { return value.toString() } 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 389a15cf692b..ea8bbdc4cb44 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 @@ -41,9 +41,9 @@ data class Pet ( @Json(name = "status") val status: Pet.Status? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } /** * pet status in the store 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 ac09dd089e08..51c3d806dfd9 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 @@ -26,9 +26,9 @@ data class ReadOnlyFirst ( @Json(name = "baz") val baz: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 1d2dd5ac1e97..ea215b2e44d1 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 @@ -23,9 +23,9 @@ data class Return ( @Json(name = "return") val `return`: kotlin.Int? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 731a3b05e834..b5e0c881d3fb 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 @@ -23,9 +23,9 @@ data class SpecialModelname ( @Json(name = "\$special[property.name]") val dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket: kotlin.Long? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 6d999d38576a..2cc3079a7458 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 @@ -26,9 +26,9 @@ data class Tag ( @Json(name = "name") val name: kotlin.String? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } } 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 fbe6650a9141..63cce33a54e4 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 @@ -45,9 +45,9 @@ data class User ( @Json(name = "userStatus") val userStatus: kotlin.Int? = null ) : Serializable { - companion object { - private const val serialVersionUID: Long = 123 - } + companion object { + private const val serialVersionUID: Long = 123 + } }