Skip to content

Add option DefaultTyping.EVERYTHING to support Kotlin data classes #2349

@sdeleuze

Description

@sdeleuze

Most usages of ObjectMapper.DefaultTyping are NON_FINAL which seems the wider scope available, which is real issue with Kotlin data classes which are final by design and can't be open. As a consequence, usage in Spring Data Redis turn to be a very difficult journey (GenericJackson2JsonRedisSerializer is very popular but not usable with Kotlin).

Is it possible to include a more Kotlin friendly enum value that would support final classes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions