Skip to content

Commit

Permalink
Add enum features into JsonFormat.Feature -- READ_UNKNOWN_ENUM_VALUES…
Browse files Browse the repository at this point in the history
…_AS_NULL, READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE (#211)
  • Loading branch information
Siwach16 committed Jan 17, 2023
1 parent 7008b49 commit 0050943
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/java/com/fasterxml/jackson/annotation/JsonFormat.java
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,23 @@ public enum Feature {
*/
ACCEPT_CASE_INSENSITIVE_PROPERTIES,

/**
* Override for <code>DeserializationFeature.READ_UNKNOWN_ENUM_VALUES_AS_NULL</code>,
* which allows unknown Enum values to be parsed as null values.
*
* @since 2.15
*/
READ_UNKNOWN_ENUM_VALUES_AS_NULL,

/**
* Override for <code>DeserializationFeature.READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE</code>,
* which allows unknown Enum values to be ignored and a predefined value specified through
* {@link com.fasterxml.jackson.annotation.JsonEnumDefaultValue @JsonEnumDefaultValue} annotation.
*
* @since 2.15
*/
READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE,

/**
* Override for <code>MapperFeature.ACCEPT_CASE_INSENSITIVE_VALUES</code>,
* which allows case-sensitive matching of (some) property values, such
Expand Down

0 comments on commit 0050943

Please sign in to comment.