Skip to content

Commit bc55418

Browse files
committed
Update release notes wrt #223
1 parent 624bbef commit bc55418

File tree

2 files changed

+20
-15
lines changed

2 files changed

+20
-15
lines changed

release-notes/VERSION-2.x

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ NOTE: Annotations module will never contain changes in patch versions,
1111
=== Releases ===
1212
------------------------------------------------------------------------
1313

14+
2.16.0 (not yet released)
15+
16+
#223: Add new `OptBoolean` valued property in `@JsonTypeInfo` to allow
17+
per-type configuration of strict type id handling
18+
(contributed by Joo-Hyuk K)
19+
1420
2.15.0 (23-Apr-2023)
1521

1622
#211: Add `JsonFormat.Feature`s: READ_UNKNOWN_ENUM_VALUES_AS_NULL,

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

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public enum Id {
129129
* <p>
130130
* On serialization, no type ID is written, and only regular properties are included.
131131
*
132-
* @since 2.12.0.
132+
* @since 2.12
133133
*/
134134
DEDUCTION(null),
135135

@@ -215,7 +215,7 @@ public enum As {
215215
* This mostly matters with respect to output order; this choice is the only
216216
* way to ensure specific placement of type id during serialization.
217217
*
218-
* @since 2.3.0 but databind <b>only since 2.5.0</b>.
218+
* @since 2.3 but databind <b>only since 2.5</b>.
219219
*/
220220
EXISTING_PROPERTY
221221
;
@@ -306,16 +306,14 @@ public enum As {
306306
public boolean visible() default false;
307307

308308
// 19-Dec-2014, tatu: Was hoping to implement for 2.5, but didn't quite make it.
309-
// Hope for better luck with 2.8 or later
310-
/**
309+
// Hope for better luck in future
310+
/*
311311
* Property that defines whether type serializer is allowed to omit writing
312312
* of type id, in case that value written has type same as {@link #defaultImpl()}.
313313
* If true, omission is allowed (although writer may or may not be able to do that);
314314
* if false, type id should always be written still.
315-
*
316-
* @since 2.5
317-
public boolean skipWritingDefault() default false;
318-
*/
315+
*/
316+
// public boolean skipWritingDefault() default false;
319317

320318
/*
321319
/**********************************************************
@@ -335,17 +333,18 @@ public enum As {
335333
public abstract static class None {}
336334

337335
/**
338-
* Specifies whether the type ID should be strictly required during polymorphic deserialization of its subtypes.
336+
* Specifies whether the type ID should be strictly required during polymorphic
337+
* deserialization of its subtypes.
339338
* <p>
340-
* If set to {@link OptBoolean#TRUE}, an {@code InvalidTypeIdException} will be thrown if no type
341-
* information is provided.
342-
* If set to {@link OptBoolean#FALSE}, deserialization may proceed without type information if the
343-
* subtype is a legitimate target (non-abstract).
339+
* If set to {@link OptBoolean#TRUE}, an {@code InvalidTypeIdException} will
340+
* be thrown if no type information is provided.
341+
* If set to {@link OptBoolean#FALSE}, deserialization may proceed without
342+
* type information if the subtype is a legitimate target (non-abstract).
344343
* If set to {@link OptBoolean#DEFAULT}, the global configuration of
345344
* {@code MapperFeature#REQUIRE_TYPE_ID_FOR_SUBTYPES} is used for type ID handling.
346345
* <p>
347-
* NOTE: This setting is specific to this type and will <strong>always override</strong> the global
348-
* configuration of {@code MapperFeature#REQUIRE_TYPE_ID_FOR_SUBTYPES}.
346+
* NOTE: This setting is specific to this type and will <strong>always override</strong>
347+
* the global configuration of {@code MapperFeature.REQUIRE_TYPE_ID_FOR_SUBTYPES}.
349348
*
350349
* @since 2.16
351350
*/

0 commit comments

Comments
 (0)