Skip to content

Add optional explicit JsonSubTypes repeated names check #3500

Closed
@ancane

Description

@ancane

Hi) Got a project at hand, using tons of JsonSubTypes with logical short names defined for the brevity of serialized data. Usually, it's pretty hard to manually check there are no repeated name/names aliases defined when adding a new subtype. I would like to explicitly state and validate there are no repeated subtype names defined. Please, consider related PR for this matter and suggest the best way to do this if PR is not good enough. I will also PR the annotations repo with the flag to enable the check.(FasterXML/jackson-annotations#204)
Also please advise, how to add this to the 2.12 branch if that's at all possible. Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions