-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
2.18Issues planned at 2.18 or laterIssues planned at 2.18 or later
Milestone
Description
Search before asking
- I searched in the issues and found nothing similar.
Describe the bug
I have kotlin data class
data class Request(
@JsonProperty("header")
override val header: String? = null,
@JsonIgnore
@JsonAnySetter
@JsonAnyGetter
val additionProperties: Map<String, Any?>? = null,
) : Parent(header)
and json
{
"payloadType": "perform",
"data":{
"header": "lol",
"type": "sometype",
"any_other_data": {
"field1": "1",
"field2": "",
"field3": "",
"field4": {
"field5": "",
"field6": "",
"field7": "anytext"
}
}
}
}
Before jackson 2.17.0 the json deserialized into class correctly. any_other_data put to additionalProperties map.
On 2.17.0 version i have additionalProperties == null after the deserialization.
Version Information
2.17.0
Expected behavior
i expected that field annotated with @JsonAnySetter will be filled with all the undeclared fields
paulbakker, cowtowncoder, meoyawn, brunobastosg, miez and 4 more
Metadata
Metadata
Assignees
Labels
2.18Issues planned at 2.18 or laterIssues planned at 2.18 or later