Configuration Reference

Version:1.0.1

Serde Api Config Properties

🔗
Table 1. Configuration Properties for SerdeConfiguration
Property Type Description

micronaut.serde.date-format

java.util.Optional

The date format to use when serializing and deserializing dates.

@return the date format to use

micronaut.serde.write-dates-as-timestamps

boolean

Whether to write dates as time stamps. Defaults to {@code true}.

<p>If set to {@code false} the default ISO formats will be used to format dates as strings.</p>

@see java.time.format.DateTimeFormatter @return Whether to write dates as timestamps

micronaut.serde.locale

java.util.Optional

@return The default locale to use.

micronaut.serde.time-zone

java.util.Optional

@return The default time zone to use.

micronaut.serde.included-introspection-packages

java.util.List

The packages containing introspections that should be regarded as serializable by default without the need to add the Serdeable annotation.

@return the packages to include

🔗
Table 2. Configuration Properties for SerializationConfiguration
Property Type Description

micronaut.serde.serialization.inclusion

SerdeConfig$SerInclude

@return The default inclusion to use. Defaults to {@link SerdeConfig.SerInclude#NON_EMPTY}.

micronaut.serde.serialization.always-serialize-errors-as-list

boolean

@return Whether to serialize errors as a list. @see io.micronaut.http.hateoas.JsonError

🔗
Table 3. Configuration Properties for DeserializationConfiguration
Property Type Description

micronaut.serde.deserialization.ignore-unknown

boolean

Whether to ignore unknown values during deserialization. @return True if unknown values should simply be ignored.

micronaut.serde.deserialization.array-size-threshold

int

@return The array size thresh hold for use in binding. Defaults to {@code 100}.