versions: Jackson 2.8.1, Jackson-module-kotlin 2.8.1
Since I am running into issue #1328 with external property deserialization, I am falling back to a secondary non-enum field which is used by the mapper instead. However, I don't care about the value of this secondary field, so I set visible to false. However Jackson deserializes the external type value despite visible=false. In version 2.6.7 visible=false in the exact same scenario had the correct behavior.
Reproduction recipe:
https://github.com/rocketraman/jackson-issue-enum-polymorphism/blob/master/src/main/kotlin/visibility/Reproduction-VisibleFalse.kt
The output of the program should be:
Invite(kind=CONTACT, kindForMapper=null, to=InviteToContact(name=Foo))
but it is:
Invite(kind=CONTACT, kindForMapper=CONTACT, to=InviteToContact(name=Foo))
versions: Jackson 2.8.1, Jackson-module-kotlin 2.8.1
Since I am running into issue #1328 with external property deserialization, I am falling back to a secondary non-enum field which is used by the mapper instead. However, I don't care about the value of this secondary field, so I set
visibletofalse. However Jackson deserializes the external type value despitevisible=false. In version 2.6.7visible=falsein the exact same scenario had the correct behavior.Reproduction recipe:
https://github.com/rocketraman/jackson-issue-enum-polymorphism/blob/master/src/main/kotlin/visibility/Reproduction-VisibleFalse.kt
The output of the program should be:
Invite(kind=CONTACT, kindForMapper=null, to=InviteToContact(name=Foo))but it is:
Invite(kind=CONTACT, kindForMapper=CONTACT, to=InviteToContact(name=Foo))