Package io.micronaut.serde.config
Interface DeserializationConfiguration
public interface DeserializationConfiguration
Configuration for deserialization.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanDetermines whether to accept case-insensitive enumeration values during deserialization.intdefault booleanWhether a null field or a missing value for a primitive should fail the deserialization.booleanWhether to ignore unknown values during deserialization.booleanWhether null field should be annotated with a nullable annotations.default booleanWhether the supertype is used by default when no supertype is resolved.
-
Field Details
-
PREFIX
- See Also:
-
-
Method Details
-
isIgnoreUnknown
@Bindable(defaultValue="true") boolean isIgnoreUnknown()Whether to ignore unknown values during deserialization.- Returns:
- True if unknown values should simply be ignored.
-
getArraySizeThreshold
@Bindable(defaultValue="100") int getArraySizeThreshold()- Returns:
- The array size thresh hold for use in binding. Defaults to
100.
-
isStrictNullable
@Bindable(defaultValue="false") boolean isStrictNullable()Whether null field should be annotated with a nullable annotations. Defaults tofalse- Returns:
- True if null field should be annotated with a nullable annotations
-
isFailOnNullForPrimitives
@Bindable(defaultValue="false") default boolean isFailOnNullForPrimitives()Whether a null field or a missing value for a primitive should fail the deserialization. Defaults tofalse- Returns:
- True if a null field or a missing value for a primitive should fail the deserialization
-
isSubtypesRequireDefaultImpl
@NextMajorVersion("Inline to true to have the behaviour the same as for Jackson") @Bindable(defaultValue="false") default boolean isSubtypesRequireDefaultImpl()Whether the supertype is used by default when no supertype is resolved.- Returns:
- True to avoid the supertype and use `defaultImpl` property
-
acceptCaseInsensitiveEnums
@Bindable(defaultValue="false") default boolean acceptCaseInsensitiveEnums()Determines whether to accept case-insensitive enumeration values during deserialization. By default, case-insensitive enums are not accepted.- Returns:
trueif case-insensitive enumeration values are accepted;falseotherwise- Since:
- 2.15.2
-