Package io.micronaut.serde.annotation
Annotation Interface Serdeable
A Serde is an annotation that can be applied to type to indicate that
it is allowed to be serialized and deserialized to and from a format like JSON.
This annotation is meta-annotated with Serdeable.Serializable
and
Serdeable.Deserializable
which allow a type to be either serializable or deserializable
- Since:
- 1.0.0
- Author:
- graemerocher
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
Annotation used to indicate a type is deserializable.static @interface
Annotation used to indicate a type is serializable. -
Optional Element Summary
-
Element Details
-
validate
- Returns:
- Whether build time validation should fail compilation on definition errors.
- Default:
- true
-
naming
@AliasFor(annotation=SerdeConfig.class, member="naming") Class<? extends PropertyNamingStrategy> naming- Returns:
- Naming strategy to use for both serialization and deserialization.
- Default:
- io.micronaut.serde.config.naming.IdentityStrategy.class
-