FasterXML / jackson-annotations

Core annotations (annotations that only depend on jackson-core) for Jackson data processor
https://github.com/FasterXML/jackson
Apache License 2.0
1.03k stars 330 forks source link

Allow explicit `JsonSubTypes` repeated names check #204

Closed ancane closed 1 year ago

ancane commented 2 years ago

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 databind repo with the implementation of the check. Also please advise, how to add this to the 2.12 branch if that's at all possible. Cheers!

cowtowncoder commented 1 year ago

Was implemented via https://github.com/FasterXML/jackson-databind/issues/3500