Micronaut Serialization Configuration Reference
Every documented configuration property of Micronaut Serialization, with types, descriptions, and defaults.
78 properties across 7 sections
Micronaut Serde Api Config Properties
Configuration properties for DefaultSerdeConfiguration
| Property | Type | Description | Default |
|---|---|---|---|
micronaut.serde.date-format | java.util.Optional | | |
micronaut.serde.time-write-shape | SerdeConfiguration$TimeShape | STRING | |
micronaut.serde.numeric-time-unit | SerdeConfiguration$NumericTimeUnit | SECONDS | |
micronaut.serde.write-binary-as-array | boolean | true | |
micronaut.serde.write-durations-as-strings | boolean | false | |
micronaut.serde.write-java-util-dates-with-zone-id | boolean | false | |
micronaut.serde.reject-deprecated-three-letter-time-zone-ids | boolean | false | |
micronaut.serde.write-date-times-as-strict-ijson | boolean | false | |
micronaut.serde.locale | java.util.Optional | | |
micronaut.serde.time-zone | java.util.Optional | | |
micronaut.serde.included-introspection-packages | java.util.List | io.micronaut | |
micronaut.serde.maximum-nesting-depth | int | 1024 | |
micronaut.serde.inet-address-as-numeric | boolean | false | |
micronaut.serde.property-naming-strategy | java.lang.String | | |
micronaut.serde.json-view-enabled | boolean | false | |
micronaut.serde.jackson-json-view-enabled | boolean | false |
Configuration properties for DefaultDeserializationConfiguration
| Property | Type | Description | Default |
|---|---|---|---|
micronaut.serde.deserialization.ignore-unknown | boolean | true | |
micronaut.serde.deserialization.array-size-threshold | int | 100 | |
micronaut.serde.deserialization.strict-nullable | boolean | false | |
micronaut.serde.deserialization.fail-on-null-for-primitives | boolean | true | |
micronaut.serde.deserialization.subtypes-require-default-impl | boolean | true | |
micronaut.serde.deserialization.accept-case-insensitive-enums | boolean | false | |
micronaut.serde.deserialization.accept-single-value-as-array | boolean | false | |
micronaut.serde.deserialization.accept-case-insensitive-properties | boolean | false | |
micronaut.serde.deserialization.read-unknown-enum-values-as-null | boolean | false | |
micronaut.serde.deserialization.read-unknown-enum-values-using-default-value | boolean | false | |
micronaut.serde.deserialization.read-date-timestamps-as-nanoseconds | boolean | true | |
micronaut.serde.deserialization.adjust-dates-to-context-time-zone | boolean | false | |
micronaut.serde.deserialization.require-all-creator-parameters | boolean | false | |
micronaut.serde.deserialization.disable-generated-deserializer | boolean | false | |
micronaut.serde.deserialization.coercion-mode | CoercionMode | LENIENT | |
micronaut.serde.deserialization.accept-float-as-int | java.lang.Boolean | | |
micronaut.serde.deserialization.accept-string-as-number | java.lang.Boolean | | |
micronaut.serde.deserialization.accept-boolean-as-number | java.lang.Boolean | | |
micronaut.serde.deserialization.accept-number-as-boolean | java.lang.Boolean | | |
micronaut.serde.deserialization.accept-string-as-boolean | java.lang.Boolean | | |
micronaut.serde.deserialization.accept-scalar-as-string | java.lang.Boolean | | |
micronaut.serde.deserialization.unwrap-single-value-arrays | java.lang.Boolean | |
Configuration properties for DefaultSerializationConfiguration
| Property | Type | Description | Default |
|---|---|---|---|
micronaut.serde.serialization.inclusion | SerdeConfig$SerInclude | NON_EMPTY | |
micronaut.serde.serialization.always-serialize-errors-as-list | boolean | true | |
micronaut.serde.serialization.sort-properties-alphabetically | boolean | false | |
micronaut.serde.serialization.write-date-timestamps-as-nanoseconds | boolean | true | |
micronaut.serde.serialization.write-dates-with-zone-id | boolean | true | |
micronaut.serde.serialization.write-single-elem-arrays-unwrapped | boolean | false | |
micronaut.serde.serialization.write-sorted-map-entries | boolean | false | |
micronaut.serde.serialization.disable-generated-serializer | boolean | false |
Micronaut Serde Jackson Cbor Config Properties
Configuration properties for SerdeCborConfiguration
| Property | Type | Description |
|---|---|---|
micronaut.serde.cbor.cbor-read-features | java.util.Map | Sets CBOR read features. |
micronaut.serde.cbor.cbor-write-features | java.util.Map | Sets CBOR write features. |
micronaut.serde.cbor.stream-read-features | java.util.Map | Sets stream read features. |
micronaut.serde.cbor.stream-write-features | java.util.Map | Sets stream write features. |
micronaut.serde.cbor.write-binary-as-array | boolean | Sets whether {@code byte[]} values are written as numeric arrays. |
Micronaut Serde Jackson Config Properties
Configuration properties for SerdeJacksonConfiguration
| Property | Type | Description |
|---|---|---|
micronaut.serde.jackson.json-read-features | java.util.Map | |
micronaut.serde.jackson.json-write-features | java.util.Map | |
micronaut.serde.jackson.json-factory-features | java.util.Map | |
micronaut.serde.jackson.stream-write-features | java.util.Map | |
micronaut.serde.jackson.stream-read-features | java.util.Map | |
micronaut.serde.jackson.pretty-print | boolean |
Micronaut Serde Jsonb Config Properties
Configuration properties for JsonbConfiguration
| Property | Type | Description | Default |
|---|---|---|---|
micronaut.serde.jsonb.reflection | JsonbConfiguration$Reflection | Reflection fallback mode for the context-created JSON-B bean. | OFF |
Micronaut Serde Properties Config Properties
Configuration properties for SerdePropertiesConfiguration
| Property | Type | Description |
|---|---|---|
micronaut.serde.format.properties.array-index-style | SerdePropertiesConfiguration$ArrayIndexStyle | Sets the array index style. |
Micronaut Serde Stax Xml Config Properties
Configuration properties for XmlSerdeConfiguration
| Property | Type | Description |
|---|---|---|
micronaut.serde.format.xml.repairing-namespaces | boolean | Sets whether namespace repairing is enabled. |
micronaut.serde.format.xml.automatic-empty-elements | boolean | Sets whether the XML writer may use self-closing empty elements. |
micronaut.serde.format.xml.maximum-input-size | long | Sets the maximum XML input size. |
micronaut.serde.format.xml.xml-read-features | java.util.Map | Sets the XML read feature map. |
Micronaut Serde Yaml Config Properties
Configuration properties for SerdeYamlConfiguration$ReadFeatures
| Property | Type | Description |
|---|---|---|
micronaut.serde.format.yaml.read-features.boolean-as-strings | boolean | Sets whether YAML boolean-like words should be parsed as strings. |
micronaut.serde.format.yaml.read-features.empty-string-as-null | boolean | Sets whether an empty plain YAML scalar should be parsed as {@code null}. |
micronaut.serde.format.yaml.read-features.code-point-limit | int | Sets the maximum number of code points a single YAML input may contain. |
Configuration properties for SerdeYamlConfiguration$WriteFeatures
| Property | Type | Description |
|---|---|---|
micronaut.serde.format.yaml.write-features.write-style | SerdeYamlConfiguration$WriteStyle | Sets the write style. |
micronaut.serde.format.yaml.write-features.indent | int | Sets the indentation width. |
micronaut.serde.format.yaml.write-features.explicit-start | boolean | Sets whether to emit an explicit document start marker. |
micronaut.serde.format.yaml.write-features.explicit-end | boolean | Sets whether to emit an explicit document end marker. |
micronaut.serde.format.yaml.write-features.minimize-quotes | boolean | Sets whether quotes should be omitted from strings when YAML permits it. |
micronaut.serde.format.yaml.write-features.literal-block-style | boolean | Sets whether multiline strings should be emitted using YAML literal block style. |
micronaut.serde.format.yaml.write-features.split-lines | boolean | Sets whether long textual content should be split into multiple lines. |
micronaut.serde.format.yaml.write-features.canonical-output | boolean | Sets whether YAML should be emitted in canonical form. |
micronaut.serde.format.yaml.write-features.indent-arrays | boolean | Sets whether sequence indicators should be indented. |
micronaut.serde.format.yaml.write-features.indent-arrays-with-indicator | boolean | Sets whether sequence indicators should be indented by two spaces. |
micronaut.serde.format.yaml.write-features.allow-long-keys | boolean | Sets whether simple YAML keys may be up to 1024 characters long. |
micronaut.serde.format.yaml.write-features.use-yaml-nonfinite-notation | boolean | Sets whether non-finite numbers should use YAML notation. |
No properties match this filter.