You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Jackson @JsonProperty annotation is being ignored when property name is in camelCase and first word consists in a single letter.
To Reproduce
Here is an example with two properties of same type but different name. Kotlin compiler places @JsonProperty on same place: constructor param. However, only originalName property name is replaced but aName is not.
fragonib
changed the title
JsonProperty is being ignored when property name in camelCase starts with a single letter
@JsonProperty is being ignored when property name (in camelCase notation) starts with a single letter
Jul 19, 2020
MyClass(val eTag: String) the eTag value is parsed as etag removing the capital letter T
This can be a big problem if a back-end sends me a json with capital letters in the second place of the properties, because Jackson can not find the property and fails.
Describe the bug
Jackson
@JsonProperty
annotation is being ignored when property name is in camelCase and first word consists in a single letter.To Reproduce
Here is an example with two properties of same type but different name. Kotlin compiler places
@JsonProperty
on same place: constructor param. However, onlyoriginalName
property name is replaced butaName
is not.Expected behavior
Versions
Kotlin: 1.3
Jackson-module-kotlin: 2.11.1
Jackson-databind: 2.11.1
The text was updated successfully, but these errors were encountered: