Skip to content

Commit

Permalink
fix #11353 use @get:JsonProperty instead of @field:JsonProperty (#19186)
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorch authored Jul 17, 2024
1 parent 045f4b6 commit 2f5529a
Show file tree
Hide file tree
Showing 72 changed files with 297 additions and 297 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}}}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}}}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<StringEnumRef>? = null,

@field:JsonProperty("array_string_enum_default")
@get:JsonProperty("array_string_enum_default")
val arrayStringEnumDefault: kotlin.collections.List<DefaultValue.ArrayStringEnumDefault>? = null,

@field:JsonProperty("array_string_default")
@get:JsonProperty("array_string_default")
val arrayStringDefault: kotlin.collections.List<kotlin.String>? = arrayListOf("failure","skipped"),

@field:JsonProperty("array_integer_default")
@get:JsonProperty("array_integer_default")
val arrayIntegerDefault: kotlin.collections.List<kotlin.Int>? = arrayListOf(1,3),

@field:JsonProperty("array_string")
@get:JsonProperty("array_string")
val arrayString: kotlin.collections.List<kotlin.String>? = null,

@field:JsonProperty("array_string_nullable")
@get:JsonProperty("array_string_nullable")
val arrayStringNullable: kotlin.collections.List<kotlin.String>? = null,

@field:JsonProperty("array_string_extension_nullable")
@get:JsonProperty("array_string_extension_nullable")
val arrayStringExtensionNullable: kotlin.collections.List<kotlin.String>? = null,

@field:JsonProperty("string_nullable")
@get:JsonProperty("string_nullable")
val stringNullable: kotlin.String? = null

) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<kotlin.String>,

@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<Tag>? = null,

/* pet status in the store */
@field:JsonProperty("status")
@get:JsonProperty("status")
val status: Pet.Status? = null

) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Query.Outcomes>? = null

) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import com.fasterxml.jackson.annotation.JsonProperty

data class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter (

@field:JsonProperty("values")
@get:JsonProperty("values")
val propertyValues: kotlin.collections.List<kotlin.String>? = null

) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<StringEnumRef>? = null,

@field:JsonProperty("array_string_enum_default")
@get:JsonProperty("array_string_enum_default")
val arrayStringEnumDefault: kotlin.collections.List<DefaultValue.ArrayStringEnumDefault>? = null,

@field:JsonProperty("array_string_default")
@get:JsonProperty("array_string_default")
val arrayStringDefault: kotlin.collections.List<kotlin.String>? = arrayListOf("failure","skipped"),

@field:JsonProperty("array_integer_default")
@get:JsonProperty("array_integer_default")
val arrayIntegerDefault: kotlin.collections.List<kotlin.Int>? = arrayListOf(1,3),

@field:JsonProperty("array_string")
@get:JsonProperty("array_string")
val arrayString: kotlin.collections.List<kotlin.String>? = null,

@field:JsonProperty("array_string_nullable")
@get:JsonProperty("array_string_nullable")
val arrayStringNullable: kotlin.collections.List<kotlin.String>? = null,

@field:JsonProperty("array_string_extension_nullable")
@get:JsonProperty("array_string_extension_nullable")
val arrayStringExtensionNullable: kotlin.collections.List<kotlin.String>? = null,

@field:JsonProperty("string_nullable")
@get:JsonProperty("string_nullable")
val stringNullable: kotlin.String? = null

) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<kotlin.String>,

@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<Tag>? = null,

/* pet status in the store */
@field:JsonProperty("status")
@get:JsonProperty("status")
val status: Pet.Status? = null

) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Query.Outcomes>? = null

) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import com.fasterxml.jackson.annotation.JsonProperty

data class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter (

@field:JsonProperty("values")
@get:JsonProperty("values")
val propertyValues: kotlin.collections.List<kotlin.String>? = null

) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<kotlin.String>,

@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<Tag>? = null,

/* pet status in the store */
@field:JsonProperty("status")
@get:JsonProperty("status")
val status: Pet.Status? = null

) {
Expand Down
Loading

0 comments on commit 2f5529a

Please sign in to comment.