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