Package io.micronaut.serde.annotation
Annotation Interface Serdeable.Serializable
- Enclosing class:
- Serdeable
Annotation used to indicate a type is serializable.
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionClass<?>
Use the given class to serialize this type.Class<? extends PropertyNamingStrategy>
Class<? extends Serializer>
boolean
-
Element Details
-
using
- Returns:
- The
Serializer
to use.
- Default:
- io.micronaut.serde.Serializer.class
-
validate
- Returns:
- Whether build time validation should fail compilation on definition errors.
- Default:
- true
-
as
Use the given class to serialize this type.- Returns:
- A type that is a subclass of the annotated type.
- Default:
- void.class
-
naming
@AliasFor(annotation=SerdeConfig.class, member="naming") Class<? extends PropertyNamingStrategy> naming- Returns:
- Naming strategy to use.
- Default:
- io.micronaut.serde.config.naming.IdentityStrategy.class
-