diff --git a/modules/openapi-generator/src/main/resources/kotlin-client/data_class_opt_var.mustache b/modules/openapi-generator/src/main/resources/kotlin-client/data_class_opt_var.mustache index 1b328da49ea..1609fa8656e 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-client/data_class_opt_var.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-client/data_class_opt_var.mustache @@ -9,7 +9,7 @@ @SerializedName("{{{vendorExtensions.x-base-name-literal}}}") {{/gson}} {{#jackson}} - @field:JsonProperty("{{{vendorExtensions.x-base-name-literal}}}") + @get:JsonProperty("{{{vendorExtensions.x-base-name-literal}}}") {{/jackson}} {{#kotlinx_serialization}} {{^isEnum}}{{^isArray}}{{^isPrimitiveType}}{{^isModel}}@Contextual {{/isModel}}{{/isPrimitiveType}}{{/isArray}}{{/isEnum}}@SerialName(value = "{{{vendorExtensions.x-base-name-literal}}}") diff --git a/modules/openapi-generator/src/main/resources/kotlin-client/data_class_req_var.mustache b/modules/openapi-generator/src/main/resources/kotlin-client/data_class_req_var.mustache index 4a31e0d01ed..3c9387d1015 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-client/data_class_req_var.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-client/data_class_req_var.mustache @@ -9,7 +9,7 @@ @SerializedName("{{{vendorExtensions.x-base-name-literal}}}") {{/gson}} {{#jackson}} - @field:JsonProperty("{{{vendorExtensions.x-base-name-literal}}}") + @get:JsonProperty("{{{vendorExtensions.x-base-name-literal}}}") {{/jackson}} {{#kotlinx_serialization}} {{^isEnum}}{{^isArray}}{{^isPrimitiveType}}{{^isModel}}@Contextual {{/isModel}}{{/isPrimitiveType}}{{/isArray}}{{/isEnum}}@SerialName(value = "{{{vendorExtensions.x-base-name-literal}}}") diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Bird.kt b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Bird.kt index 36cea63cf1a..4207d12f74b 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Bird.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Bird.kt @@ -29,10 +29,10 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Bird ( - @field:JsonProperty("size") + @get:JsonProperty("size") val propertySize: kotlin.String? = null, - @field:JsonProperty("color") + @get:JsonProperty("color") val color: kotlin.String? = null ) { diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Category.kt index fe59d37f3eb..9ca46c3d0fa 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -29,10 +29,10 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Category ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String? = null ) { diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/DefaultValue.kt b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/DefaultValue.kt index 758fa3e1612..aa1c1f36365 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/DefaultValue.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/DefaultValue.kt @@ -36,28 +36,28 @@ import com.fasterxml.jackson.annotation.JsonProperty data class DefaultValue ( - @field:JsonProperty("array_string_enum_ref_default") + @get:JsonProperty("array_string_enum_ref_default") val arrayStringEnumRefDefault: kotlin.collections.List? = null, - @field:JsonProperty("array_string_enum_default") + @get:JsonProperty("array_string_enum_default") val arrayStringEnumDefault: kotlin.collections.List? = null, - @field:JsonProperty("array_string_default") + @get:JsonProperty("array_string_default") val arrayStringDefault: kotlin.collections.List? = arrayListOf("failure","skipped"), - @field:JsonProperty("array_integer_default") + @get:JsonProperty("array_integer_default") val arrayIntegerDefault: kotlin.collections.List? = arrayListOf(1,3), - @field:JsonProperty("array_string") + @get:JsonProperty("array_string") val arrayString: kotlin.collections.List? = null, - @field:JsonProperty("array_string_nullable") + @get:JsonProperty("array_string_nullable") val arrayStringNullable: kotlin.collections.List? = null, - @field:JsonProperty("array_string_extension_nullable") + @get:JsonProperty("array_string_extension_nullable") val arrayStringExtensionNullable: kotlin.collections.List? = null, - @field:JsonProperty("string_nullable") + @get:JsonProperty("string_nullable") val stringNullable: kotlin.String? = null ) { diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/NumberPropertiesOnly.kt b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/NumberPropertiesOnly.kt index 4c05a68b04e..5658fb2393f 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/NumberPropertiesOnly.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/NumberPropertiesOnly.kt @@ -30,13 +30,13 @@ import com.fasterxml.jackson.annotation.JsonProperty data class NumberPropertiesOnly ( - @field:JsonProperty("number") + @get:JsonProperty("number") val number: java.math.BigDecimal? = null, - @field:JsonProperty("float") + @get:JsonProperty("float") val float: kotlin.Float? = null, - @field:JsonProperty("double") + @get:JsonProperty("double") val double: kotlin.Double? = null ) { diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Pet.kt index 35e8747eb7e..adc88b27357 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -35,23 +35,23 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Pet ( - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String, - @field:JsonProperty("photoUrls") + @get:JsonProperty("photoUrls") val photoUrls: kotlin.collections.List, - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("category") + @get:JsonProperty("category") val category: Category? = null, - @field:JsonProperty("tags") + @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, /* pet status in the store */ - @field:JsonProperty("status") + @get:JsonProperty("status") val status: Pet.Status? = null ) { diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Query.kt b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Query.kt index 60c9249f603..6c346a4c093 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Query.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Query.kt @@ -30,10 +30,10 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Query ( /* Query */ - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("outcomes") + @get:JsonProperty("outcomes") val outcomes: kotlin.collections.List? = null ) { diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Tag.kt index 617a4684ea1..9cef5f51bd6 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -29,10 +29,10 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Tag ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String? = null ) { diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.kt b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.kt index 9463efaec72..2c197f0ce80 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.kt @@ -28,7 +28,7 @@ import com.fasterxml.jackson.annotation.JsonProperty data class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter ( - @field:JsonProperty("values") + @get:JsonProperty("values") val propertyValues: kotlin.collections.List? = null ) { diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Bird.kt b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Bird.kt index 36cea63cf1a..4207d12f74b 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Bird.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Bird.kt @@ -29,10 +29,10 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Bird ( - @field:JsonProperty("size") + @get:JsonProperty("size") val propertySize: kotlin.String? = null, - @field:JsonProperty("color") + @get:JsonProperty("color") val color: kotlin.String? = null ) { diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Category.kt index fe59d37f3eb..9ca46c3d0fa 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -29,10 +29,10 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Category ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String? = null ) { diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/DefaultValue.kt b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/DefaultValue.kt index 758fa3e1612..aa1c1f36365 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/DefaultValue.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/DefaultValue.kt @@ -36,28 +36,28 @@ import com.fasterxml.jackson.annotation.JsonProperty data class DefaultValue ( - @field:JsonProperty("array_string_enum_ref_default") + @get:JsonProperty("array_string_enum_ref_default") val arrayStringEnumRefDefault: kotlin.collections.List? = null, - @field:JsonProperty("array_string_enum_default") + @get:JsonProperty("array_string_enum_default") val arrayStringEnumDefault: kotlin.collections.List? = null, - @field:JsonProperty("array_string_default") + @get:JsonProperty("array_string_default") val arrayStringDefault: kotlin.collections.List? = arrayListOf("failure","skipped"), - @field:JsonProperty("array_integer_default") + @get:JsonProperty("array_integer_default") val arrayIntegerDefault: kotlin.collections.List? = arrayListOf(1,3), - @field:JsonProperty("array_string") + @get:JsonProperty("array_string") val arrayString: kotlin.collections.List? = null, - @field:JsonProperty("array_string_nullable") + @get:JsonProperty("array_string_nullable") val arrayStringNullable: kotlin.collections.List? = null, - @field:JsonProperty("array_string_extension_nullable") + @get:JsonProperty("array_string_extension_nullable") val arrayStringExtensionNullable: kotlin.collections.List? = null, - @field:JsonProperty("string_nullable") + @get:JsonProperty("string_nullable") val stringNullable: kotlin.String? = null ) { diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/NumberPropertiesOnly.kt b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/NumberPropertiesOnly.kt index 4c05a68b04e..5658fb2393f 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/NumberPropertiesOnly.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/NumberPropertiesOnly.kt @@ -30,13 +30,13 @@ import com.fasterxml.jackson.annotation.JsonProperty data class NumberPropertiesOnly ( - @field:JsonProperty("number") + @get:JsonProperty("number") val number: java.math.BigDecimal? = null, - @field:JsonProperty("float") + @get:JsonProperty("float") val float: kotlin.Float? = null, - @field:JsonProperty("double") + @get:JsonProperty("double") val double: kotlin.Double? = null ) { diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Pet.kt index 35e8747eb7e..adc88b27357 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -35,23 +35,23 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Pet ( - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String, - @field:JsonProperty("photoUrls") + @get:JsonProperty("photoUrls") val photoUrls: kotlin.collections.List, - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("category") + @get:JsonProperty("category") val category: Category? = null, - @field:JsonProperty("tags") + @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, /* pet status in the store */ - @field:JsonProperty("status") + @get:JsonProperty("status") val status: Pet.Status? = null ) { diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Query.kt b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Query.kt index 60c9249f603..6c346a4c093 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Query.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Query.kt @@ -30,10 +30,10 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Query ( /* Query */ - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("outcomes") + @get:JsonProperty("outcomes") val outcomes: kotlin.collections.List? = null ) { diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Tag.kt index 617a4684ea1..9cef5f51bd6 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -29,10 +29,10 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Tag ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String? = null ) { diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.kt b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.kt index 9463efaec72..2c197f0ce80 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.kt @@ -28,7 +28,7 @@ import com.fasterxml.jackson.annotation.JsonProperty data class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter ( - @field:JsonProperty("values") + @get:JsonProperty("values") val propertyValues: kotlin.collections.List? = null ) { diff --git a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt index 6ea4e930c6c..1da41b886ac 100644 --- a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -29,10 +29,10 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Category ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String? = null ) { diff --git a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index cbd86808f1e..a7d222512aa 100644 --- a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -30,13 +30,13 @@ import com.fasterxml.jackson.annotation.JsonProperty data class ModelApiResponse ( - @field:JsonProperty("code") + @get:JsonProperty("code") val code: kotlin.Int? = null, - @field:JsonProperty("type") + @get:JsonProperty("type") val type: kotlin.String? = null, - @field:JsonProperty("message") + @get:JsonProperty("message") val message: kotlin.String? = null ) { diff --git a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt index cf1470cbff2..557527ac07d 100644 --- a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -33,23 +33,23 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Order ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("petId") + @get:JsonProperty("petId") val petId: kotlin.Long? = null, - @field:JsonProperty("quantity") + @get:JsonProperty("quantity") val quantity: kotlin.Int? = null, - @field:JsonProperty("shipDate") + @get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null, /* Order Status */ - @field:JsonProperty("status") + @get:JsonProperty("status") val status: Order.Status? = null, - @field:JsonProperty("complete") + @get:JsonProperty("complete") val complete: kotlin.Boolean? = false ) { diff --git a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt index 6bc911742a1..ba16885da8c 100644 --- a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -35,23 +35,23 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Pet ( - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String, - @field:JsonProperty("photoUrls") + @get:JsonProperty("photoUrls") val photoUrls: kotlin.collections.List, - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("category") + @get:JsonProperty("category") val category: Category? = null, - @field:JsonProperty("tags") + @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, /* pet status in the store */ - @field:JsonProperty("status") + @get:JsonProperty("status") val status: Pet.Status? = null ) { diff --git a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt index e0b2095ca18..84d47825895 100644 --- a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -29,10 +29,10 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Tag ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String? = null ) { diff --git a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/User.kt index fa771a986f2..ed66cc04570 100644 --- a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/User.kt @@ -35,29 +35,29 @@ import com.fasterxml.jackson.annotation.JsonProperty data class User ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("username") + @get:JsonProperty("username") val username: kotlin.String? = null, - @field:JsonProperty("firstName") + @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @field:JsonProperty("lastName") + @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @field:JsonProperty("email") + @get:JsonProperty("email") val email: kotlin.String? = null, - @field:JsonProperty("password") + @get:JsonProperty("password") val password: kotlin.String? = null, - @field:JsonProperty("phone") + @get:JsonProperty("phone") val phone: kotlin.String? = null, /* User Status */ - @field:JsonProperty("userStatus") + @get:JsonProperty("userStatus") val userStatus: kotlin.Int? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt index 6ea4e930c6c..1da41b886ac 100644 --- a/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -29,10 +29,10 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Category ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index cbd86808f1e..a7d222512aa 100644 --- a/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -30,13 +30,13 @@ import com.fasterxml.jackson.annotation.JsonProperty data class ModelApiResponse ( - @field:JsonProperty("code") + @get:JsonProperty("code") val code: kotlin.Int? = null, - @field:JsonProperty("type") + @get:JsonProperty("type") val type: kotlin.String? = null, - @field:JsonProperty("message") + @get:JsonProperty("message") val message: kotlin.String? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt index e49bdfc0489..25adfbd2e07 100644 --- a/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -33,23 +33,23 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Order ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("petId") + @get:JsonProperty("petId") val petId: kotlin.Long? = null, - @field:JsonProperty("quantity") + @get:JsonProperty("quantity") val quantity: kotlin.Int? = null, - @field:JsonProperty("shipDate") + @get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null, /* Order Status */ - @field:JsonProperty("status") + @get:JsonProperty("status") val status: Order.Status? = null, - @field:JsonProperty("complete") + @get:JsonProperty("complete") val complete: kotlin.Boolean? = false ) { diff --git a/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt index 1b7f870840f..ac0ae8c1a15 100644 --- a/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -35,23 +35,23 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Pet ( - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String, - @field:JsonProperty("photoUrls") + @get:JsonProperty("photoUrls") val photoUrls: kotlin.collections.List, - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("category") + @get:JsonProperty("category") val category: Category? = null, - @field:JsonProperty("tags") + @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, /* pet status in the store */ - @field:JsonProperty("status") + @get:JsonProperty("status") @Deprecated(message = "This property is deprecated.") val status: Pet.Status? = null diff --git a/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt index e0b2095ca18..84d47825895 100644 --- a/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -29,10 +29,10 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Tag ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/User.kt index fa771a986f2..ed66cc04570 100644 --- a/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/User.kt @@ -35,29 +35,29 @@ import com.fasterxml.jackson.annotation.JsonProperty data class User ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("username") + @get:JsonProperty("username") val username: kotlin.String? = null, - @field:JsonProperty("firstName") + @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @field:JsonProperty("lastName") + @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @field:JsonProperty("email") + @get:JsonProperty("email") val email: kotlin.String? = null, - @field:JsonProperty("password") + @get:JsonProperty("password") val password: kotlin.String? = null, - @field:JsonProperty("phone") + @get:JsonProperty("phone") val phone: kotlin.String? = null, /* User Status */ - @field:JsonProperty("userStatus") + @get:JsonProperty("userStatus") val userStatus: kotlin.Int? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt index 6ea4e930c6c..1da41b886ac 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -29,10 +29,10 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Category ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index cbd86808f1e..a7d222512aa 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -30,13 +30,13 @@ import com.fasterxml.jackson.annotation.JsonProperty data class ModelApiResponse ( - @field:JsonProperty("code") + @get:JsonProperty("code") val code: kotlin.Int? = null, - @field:JsonProperty("type") + @get:JsonProperty("type") val type: kotlin.String? = null, - @field:JsonProperty("message") + @get:JsonProperty("message") val message: kotlin.String? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt index e49bdfc0489..25adfbd2e07 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -33,23 +33,23 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Order ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("petId") + @get:JsonProperty("petId") val petId: kotlin.Long? = null, - @field:JsonProperty("quantity") + @get:JsonProperty("quantity") val quantity: kotlin.Int? = null, - @field:JsonProperty("shipDate") + @get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null, /* Order Status */ - @field:JsonProperty("status") + @get:JsonProperty("status") val status: Order.Status? = null, - @field:JsonProperty("complete") + @get:JsonProperty("complete") val complete: kotlin.Boolean? = false ) { diff --git a/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt index 3d75f922136..5d23b6fba1d 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -35,23 +35,23 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Pet ( - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String, - @field:JsonProperty("photoUrls") + @get:JsonProperty("photoUrls") val photoUrls: kotlin.collections.List, - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("category") + @get:JsonProperty("category") val category: Category? = null, - @field:JsonProperty("tags") + @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, /* pet status in the store */ - @field:JsonProperty("status") + @get:JsonProperty("status") val status: Pet.Status? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt index e0b2095ca18..84d47825895 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -29,10 +29,10 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Tag ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/User.kt index fa771a986f2..ed66cc04570 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/User.kt @@ -35,29 +35,29 @@ import com.fasterxml.jackson.annotation.JsonProperty data class User ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("username") + @get:JsonProperty("username") val username: kotlin.String? = null, - @field:JsonProperty("firstName") + @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @field:JsonProperty("lastName") + @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @field:JsonProperty("email") + @get:JsonProperty("email") val email: kotlin.String? = null, - @field:JsonProperty("password") + @get:JsonProperty("password") val password: kotlin.String? = null, - @field:JsonProperty("phone") + @get:JsonProperty("phone") val phone: kotlin.String? = null, /* User Status */ - @field:JsonProperty("userStatus") + @get:JsonProperty("userStatus") val userStatus: kotlin.Int? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Category.kt index 6ea4e930c6c..1da41b886ac 100644 --- a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -29,10 +29,10 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Category ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index cbd86808f1e..a7d222512aa 100644 --- a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -30,13 +30,13 @@ import com.fasterxml.jackson.annotation.JsonProperty data class ModelApiResponse ( - @field:JsonProperty("code") + @get:JsonProperty("code") val code: kotlin.Int? = null, - @field:JsonProperty("type") + @get:JsonProperty("type") val type: kotlin.String? = null, - @field:JsonProperty("message") + @get:JsonProperty("message") val message: kotlin.String? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Order.kt index e49bdfc0489..25adfbd2e07 100644 --- a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -33,23 +33,23 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Order ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("petId") + @get:JsonProperty("petId") val petId: kotlin.Long? = null, - @field:JsonProperty("quantity") + @get:JsonProperty("quantity") val quantity: kotlin.Int? = null, - @field:JsonProperty("shipDate") + @get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null, /* Order Status */ - @field:JsonProperty("status") + @get:JsonProperty("status") val status: Order.Status? = null, - @field:JsonProperty("complete") + @get:JsonProperty("complete") val complete: kotlin.Boolean? = false ) { diff --git a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Pet.kt index 1b7f870840f..ac0ae8c1a15 100644 --- a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -35,23 +35,23 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Pet ( - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String, - @field:JsonProperty("photoUrls") + @get:JsonProperty("photoUrls") val photoUrls: kotlin.collections.List, - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("category") + @get:JsonProperty("category") val category: Category? = null, - @field:JsonProperty("tags") + @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, /* pet status in the store */ - @field:JsonProperty("status") + @get:JsonProperty("status") @Deprecated(message = "This property is deprecated.") val status: Pet.Status? = null diff --git a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Tag.kt index e0b2095ca18..84d47825895 100644 --- a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -29,10 +29,10 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Tag ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/User.kt index fa771a986f2..ed66cc04570 100644 --- a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/User.kt @@ -35,29 +35,29 @@ import com.fasterxml.jackson.annotation.JsonProperty data class User ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("username") + @get:JsonProperty("username") val username: kotlin.String? = null, - @field:JsonProperty("firstName") + @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @field:JsonProperty("lastName") + @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @field:JsonProperty("email") + @get:JsonProperty("email") val email: kotlin.String? = null, - @field:JsonProperty("password") + @get:JsonProperty("password") val password: kotlin.String? = null, - @field:JsonProperty("phone") + @get:JsonProperty("phone") val phone: kotlin.String? = null, /* User Status */ - @field:JsonProperty("userStatus") + @get:JsonProperty("userStatus") val userStatus: kotlin.Int? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Category.kt index 6ea4e930c6c..1da41b886ac 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -29,10 +29,10 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Category ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index cbd86808f1e..a7d222512aa 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -30,13 +30,13 @@ import com.fasterxml.jackson.annotation.JsonProperty data class ModelApiResponse ( - @field:JsonProperty("code") + @get:JsonProperty("code") val code: kotlin.Int? = null, - @field:JsonProperty("type") + @get:JsonProperty("type") val type: kotlin.String? = null, - @field:JsonProperty("message") + @get:JsonProperty("message") val message: kotlin.String? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Order.kt index e49bdfc0489..25adfbd2e07 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -33,23 +33,23 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Order ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("petId") + @get:JsonProperty("petId") val petId: kotlin.Long? = null, - @field:JsonProperty("quantity") + @get:JsonProperty("quantity") val quantity: kotlin.Int? = null, - @field:JsonProperty("shipDate") + @get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null, /* Order Status */ - @field:JsonProperty("status") + @get:JsonProperty("status") val status: Order.Status? = null, - @field:JsonProperty("complete") + @get:JsonProperty("complete") val complete: kotlin.Boolean? = false ) { diff --git a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Pet.kt index 1b7f870840f..ac0ae8c1a15 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -35,23 +35,23 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Pet ( - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String, - @field:JsonProperty("photoUrls") + @get:JsonProperty("photoUrls") val photoUrls: kotlin.collections.List, - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("category") + @get:JsonProperty("category") val category: Category? = null, - @field:JsonProperty("tags") + @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, /* pet status in the store */ - @field:JsonProperty("status") + @get:JsonProperty("status") @Deprecated(message = "This property is deprecated.") val status: Pet.Status? = null diff --git a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Tag.kt index e0b2095ca18..84d47825895 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -29,10 +29,10 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Tag ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/User.kt index fa771a986f2..ed66cc04570 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/User.kt @@ -35,29 +35,29 @@ import com.fasterxml.jackson.annotation.JsonProperty data class User ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("username") + @get:JsonProperty("username") val username: kotlin.String? = null, - @field:JsonProperty("firstName") + @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @field:JsonProperty("lastName") + @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @field:JsonProperty("email") + @get:JsonProperty("email") val email: kotlin.String? = null, - @field:JsonProperty("password") + @get:JsonProperty("password") val password: kotlin.String? = null, - @field:JsonProperty("phone") + @get:JsonProperty("phone") val phone: kotlin.String? = null, /* User Status */ - @field:JsonProperty("userStatus") + @get:JsonProperty("userStatus") val userStatus: kotlin.Int? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Category.kt index 6ea4e930c6c..1da41b886ac 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -29,10 +29,10 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Category ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index cbd86808f1e..a7d222512aa 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -30,13 +30,13 @@ import com.fasterxml.jackson.annotation.JsonProperty data class ModelApiResponse ( - @field:JsonProperty("code") + @get:JsonProperty("code") val code: kotlin.Int? = null, - @field:JsonProperty("type") + @get:JsonProperty("type") val type: kotlin.String? = null, - @field:JsonProperty("message") + @get:JsonProperty("message") val message: kotlin.String? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Order.kt index e49bdfc0489..25adfbd2e07 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -33,23 +33,23 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Order ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("petId") + @get:JsonProperty("petId") val petId: kotlin.Long? = null, - @field:JsonProperty("quantity") + @get:JsonProperty("quantity") val quantity: kotlin.Int? = null, - @field:JsonProperty("shipDate") + @get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null, /* Order Status */ - @field:JsonProperty("status") + @get:JsonProperty("status") val status: Order.Status? = null, - @field:JsonProperty("complete") + @get:JsonProperty("complete") val complete: kotlin.Boolean? = false ) { diff --git a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Pet.kt index 1b7f870840f..ac0ae8c1a15 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -35,23 +35,23 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Pet ( - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String, - @field:JsonProperty("photoUrls") + @get:JsonProperty("photoUrls") val photoUrls: kotlin.collections.List, - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("category") + @get:JsonProperty("category") val category: Category? = null, - @field:JsonProperty("tags") + @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, /* pet status in the store */ - @field:JsonProperty("status") + @get:JsonProperty("status") @Deprecated(message = "This property is deprecated.") val status: Pet.Status? = null diff --git a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Tag.kt index e0b2095ca18..84d47825895 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -29,10 +29,10 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Tag ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/User.kt index fa771a986f2..ed66cc04570 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/User.kt @@ -35,29 +35,29 @@ import com.fasterxml.jackson.annotation.JsonProperty data class User ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("username") + @get:JsonProperty("username") val username: kotlin.String? = null, - @field:JsonProperty("firstName") + @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @field:JsonProperty("lastName") + @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @field:JsonProperty("email") + @get:JsonProperty("email") val email: kotlin.String? = null, - @field:JsonProperty("password") + @get:JsonProperty("password") val password: kotlin.String? = null, - @field:JsonProperty("phone") + @get:JsonProperty("phone") val phone: kotlin.String? = null, /* User Status */ - @field:JsonProperty("userStatus") + @get:JsonProperty("userStatus") val userStatus: kotlin.Int? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Category.kt index f96af7e336b..4a68d1a3ebd 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -28,10 +28,10 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Category ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index b74debaeb5d..2583efc725f 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -29,13 +29,13 @@ import com.fasterxml.jackson.annotation.JsonProperty data class ModelApiResponse ( - @field:JsonProperty("code") + @get:JsonProperty("code") val code: kotlin.Int? = null, - @field:JsonProperty("type") + @get:JsonProperty("type") val type: kotlin.String? = null, - @field:JsonProperty("message") + @get:JsonProperty("message") val message: kotlin.String? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Order.kt index d278f0361d7..c9c227da18e 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -32,23 +32,23 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Order ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("petId") + @get:JsonProperty("petId") val petId: kotlin.Long? = null, - @field:JsonProperty("quantity") + @get:JsonProperty("quantity") val quantity: kotlin.Int? = null, - @field:JsonProperty("shipDate") + @get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null, /* Order Status */ - @field:JsonProperty("status") + @get:JsonProperty("status") val status: Order.Status? = null, - @field:JsonProperty("complete") + @get:JsonProperty("complete") val complete: kotlin.Boolean? = false ) { diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Pet.kt index eb0640bb63e..43bacb547ed 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -34,23 +34,23 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Pet ( - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String, - @field:JsonProperty("photoUrls") + @get:JsonProperty("photoUrls") val photoUrls: kotlin.collections.List, - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("category") + @get:JsonProperty("category") val category: Category? = null, - @field:JsonProperty("tags") + @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, /* pet status in the store */ - @field:JsonProperty("status") + @get:JsonProperty("status") @Deprecated(message = "This property is deprecated.") val status: Pet.Status? = null diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Tag.kt index d3240c8392d..7a2db5f9329 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -28,10 +28,10 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Tag ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/User.kt index e440c602265..6e28ef27d09 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/User.kt @@ -34,29 +34,29 @@ import com.fasterxml.jackson.annotation.JsonProperty data class User ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("username") + @get:JsonProperty("username") val username: kotlin.String? = null, - @field:JsonProperty("firstName") + @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @field:JsonProperty("lastName") + @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @field:JsonProperty("email") + @get:JsonProperty("email") val email: kotlin.String? = null, - @field:JsonProperty("password") + @get:JsonProperty("password") val password: kotlin.String? = null, - @field:JsonProperty("phone") + @get:JsonProperty("phone") val phone: kotlin.String? = null, /* User Status */ - @field:JsonProperty("userStatus") + @get:JsonProperty("userStatus") val userStatus: kotlin.Int? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt index f96af7e336b..4a68d1a3ebd 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -28,10 +28,10 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Category ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index b74debaeb5d..2583efc725f 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -29,13 +29,13 @@ import com.fasterxml.jackson.annotation.JsonProperty data class ModelApiResponse ( - @field:JsonProperty("code") + @get:JsonProperty("code") val code: kotlin.Int? = null, - @field:JsonProperty("type") + @get:JsonProperty("type") val type: kotlin.String? = null, - @field:JsonProperty("message") + @get:JsonProperty("message") val message: kotlin.String? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt index d278f0361d7..c9c227da18e 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -32,23 +32,23 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Order ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("petId") + @get:JsonProperty("petId") val petId: kotlin.Long? = null, - @field:JsonProperty("quantity") + @get:JsonProperty("quantity") val quantity: kotlin.Int? = null, - @field:JsonProperty("shipDate") + @get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null, /* Order Status */ - @field:JsonProperty("status") + @get:JsonProperty("status") val status: Order.Status? = null, - @field:JsonProperty("complete") + @get:JsonProperty("complete") val complete: kotlin.Boolean? = false ) { diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt index eb0640bb63e..43bacb547ed 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -34,23 +34,23 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Pet ( - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String, - @field:JsonProperty("photoUrls") + @get:JsonProperty("photoUrls") val photoUrls: kotlin.collections.List, - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("category") + @get:JsonProperty("category") val category: Category? = null, - @field:JsonProperty("tags") + @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, /* pet status in the store */ - @field:JsonProperty("status") + @get:JsonProperty("status") @Deprecated(message = "This property is deprecated.") val status: Pet.Status? = null diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt index d3240c8392d..7a2db5f9329 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -28,10 +28,10 @@ import com.fasterxml.jackson.annotation.JsonProperty data class Tag ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String? = null ) { diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/User.kt index e440c602265..6e28ef27d09 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/User.kt @@ -34,29 +34,29 @@ import com.fasterxml.jackson.annotation.JsonProperty data class User ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("username") + @get:JsonProperty("username") val username: kotlin.String? = null, - @field:JsonProperty("firstName") + @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @field:JsonProperty("lastName") + @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @field:JsonProperty("email") + @get:JsonProperty("email") val email: kotlin.String? = null, - @field:JsonProperty("password") + @get:JsonProperty("password") val password: kotlin.String? = null, - @field:JsonProperty("phone") + @get:JsonProperty("phone") val phone: kotlin.String? = null, /* User Status */ - @field:JsonProperty("userStatus") + @get:JsonProperty("userStatus") val userStatus: kotlin.Int? = null ) { diff --git a/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt index 28571edbcd8..d855082fa40 100644 --- a/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -29,10 +29,10 @@ import java.io.Serializable data class Category ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String? = null ) : Serializable { diff --git a/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index 21de1ba349c..bf611b66b93 100644 --- a/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -30,13 +30,13 @@ import java.io.Serializable data class ModelApiResponse ( - @field:JsonProperty("code") + @get:JsonProperty("code") val code: kotlin.Int? = null, - @field:JsonProperty("type") + @get:JsonProperty("type") val type: kotlin.String? = null, - @field:JsonProperty("message") + @get:JsonProperty("message") val message: kotlin.String? = null ) : Serializable { diff --git a/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt index 513964005f6..8918e30e9f8 100644 --- a/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -33,23 +33,23 @@ import java.io.Serializable data class Order ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("petId") + @get:JsonProperty("petId") val petId: kotlin.Long? = null, - @field:JsonProperty("quantity") + @get:JsonProperty("quantity") val quantity: kotlin.Int? = null, - @field:JsonProperty("shipDate") + @get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null, /* Order Status */ - @field:JsonProperty("status") + @get:JsonProperty("status") val status: Order.Status? = null, - @field:JsonProperty("complete") + @get:JsonProperty("complete") val complete: kotlin.Boolean? = false ) : Serializable { diff --git a/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt index a6727ad1b9a..e991db289fb 100644 --- a/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -35,23 +35,23 @@ import java.io.Serializable data class Pet ( - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String, - @field:JsonProperty("photoUrls") + @get:JsonProperty("photoUrls") val photoUrls: kotlin.collections.List, - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("category") + @get:JsonProperty("category") val category: Category? = null, - @field:JsonProperty("tags") + @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, /* pet status in the store */ - @field:JsonProperty("status") + @get:JsonProperty("status") @Deprecated(message = "This property is deprecated.") val status: Pet.Status? = null diff --git a/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt index acd4ef2b910..fe5730a01d3 100644 --- a/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -29,10 +29,10 @@ import java.io.Serializable data class Tag ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("name") + @get:JsonProperty("name") val name: kotlin.String? = null ) : Serializable { diff --git a/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/User.kt index a40d077360d..204111b9446 100644 --- a/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/User.kt @@ -35,29 +35,29 @@ import java.io.Serializable data class User ( - @field:JsonProperty("id") + @get:JsonProperty("id") val id: kotlin.Long? = null, - @field:JsonProperty("username") + @get:JsonProperty("username") val username: kotlin.String? = null, - @field:JsonProperty("firstName") + @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @field:JsonProperty("lastName") + @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @field:JsonProperty("email") + @get:JsonProperty("email") val email: kotlin.String? = null, - @field:JsonProperty("password") + @get:JsonProperty("password") val password: kotlin.String? = null, - @field:JsonProperty("phone") + @get:JsonProperty("phone") val phone: kotlin.String? = null, /* User Status */ - @field:JsonProperty("userStatus") + @get:JsonProperty("userStatus") val userStatus: kotlin.Int? = null ) : Serializable {