Skip to content

Commit 0da3e6e

Browse files
authored
added failOnRepeatedNames flag, to be able to track down repeated logical type names #204 (#205)
1 parent f79bac7 commit 0da3e6e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/java/com/fasterxml/jackson/annotation/JsonSubTypes.java

+9
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@
2727
*/
2828
public Type[] value();
2929

30+
31+
/**
32+
* Subtypes of the annotated type may have logical type name and names properties.
33+
* When set to true, logical type name and names are going to be checked
34+
* for repeated values. Repeated values are considered a definition violation
35+
* during that check.
36+
*/
37+
public boolean failOnRepeatedNames() default false;
38+
3039
/**
3140
* Definition of a subtype, along with optional name(s). If no name is defined
3241
* (empty Strings are ignored), class of the type will be checked for {@link JsonTypeName}

0 commit comments

Comments
 (0)