DeserializationFeature enum
On/off settings for reading JSON, named after Jackson's
DeserializationFeature; the defaults are Spring Boot's.
- Inheritance
- Implemented types
- Available extensions
Values
- failOnUnknownProperties → const DeserializationFeature
-
A JSON property the class does not have is an error instead of being skipped (
FAIL_ON_UNKNOWN_PROPERTIES). Off, as Spring Boot configures it, so clients can send extra fields.const DeserializationFeature(false) - acceptFloatAsInt → const DeserializationFeature
-
A number with a fraction read into an
intis truncated; off makes it an error (ACCEPT_FLOAT_AS_INT). On by default.const DeserializationFeature(true) - failOnNullForPrimitives → const DeserializationFeature
-
A JSON
null(or a missing constructor parameter) for a non-nullableint,double,numorboolis an error (FAIL_ON_NULL_FOR_PRIMITIVES). On, like Jackson 3; off reads it as0/false.const DeserializationFeature(true)
Properties
- enabledByDefault → bool
-
Whether the feature is on when nobody configured it.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
DeserializationFeature> - A constant List of the values in this enum, in order of their declaration.