Package io.micronaut.serde.config
Interface SerializationConfiguration
public interface SerializationConfiguration
Configuration for serialization.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
default boolean
Determines whether properties should be serialized in alphabetical order.
-
Field Details
-
PREFIX
- See Also:
-
-
Method Details
-
getInclusion
- Returns:
- The default inclusion to use. Defaults to
SerdeConfig.SerInclude.NON_EMPTY
.
-
isAlwaysSerializeErrorsAsList
@Bindable(defaultValue="true") boolean isAlwaysSerializeErrorsAsList()- Returns:
- Whether to serialize errors as a list.
- See Also:
-
JsonError
-
sortPropertiesAlphabetically
@Bindable(defaultValue="false") default boolean sortPropertiesAlphabetically()Determines whether properties should be serialized in alphabetical order.- Returns:
- true if properties should be sorted alphabetically, false otherwise
- Since:
- 2.14
-