Package io.micronaut.serde.annotation
Annotation Interface Serdeable.Deserializable
- Enclosing class:
- Serdeable
Annotation used to indicate a type is deserializable.
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionClass<?>
Use the given class to deserialize this type.Class<? extends PropertyNamingStrategy>
Class<? extends Deserializer>
boolean
-
Element Details
-
using
@AliasFor(annotation=SerdeConfig.class, member="deserializerClass") Class<? extends Deserializer> using- Returns:
- The deserializer.
- Default:
- io.micronaut.serde.Deserializer.class
-
validate
- Returns:
- Whether build time validation should fail compilation on definition errors.
- Default:
- true
-
as
Use the given class to deserialize 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
-