-
-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new OptBoolean
valued property in @JsonTypeInfo
to allow per-type configuration of strict type id handling
#223
Conversation
@JsonTypeInfo
to allow per-type configuration of strict type id handling
@JsonTypeInfo
to allow per-type configuration of strict type id handlingOptBoolean
valued property in @JsonTypeInfo
to allow per-type configuration of strict type id handling
Sqaushed followings: - Clean up pom.xml changes - Update JsonTypeInfo.java - Clean up changes - Update JsonTypeInfo.java
@@ -313,7 +313,7 @@ public enum As { | |||
* | |||
* @since 2.5 | |||
public boolean skipWritingDefault() default false; | |||
/* | |||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Above JavaDoc was not closed properly. Maybe we can take this further to remove the comment from year 2014, since it is version-controlled?
jackson-annotations/src/main/java/com/fasterxml/jackson/annotation/JsonTypeInfo.java
Lines 306 to 316 in ae0d9f6
// 19-Dec-2014, tatu: Was hoping to implement for 2.5, but didn't quite make it. | |
// Hope for better luck with 2.8 or later | |
/** | |
* Property that defines whether type serializer is allowed to omit writing | |
* of type id, in case that value written has type same as {@link #defaultImpl()}. | |
* If true, omission is allowed (although writer may or may not be able to do that); | |
* if false, type id should always be written still. | |
* | |
* @since 2.5 | |
public boolean skipWritingDefault() default false; | |
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for removal
As part of FasterXML/jackson-databind#3891 and resolves part of FasterXML/jackson-databind#3877, this PR will stay draft until version 2.16.