Annotation Interface Serdeable


@Target(TYPE) @Retention(RUNTIME) @Introspected public @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
  • Element Details

    • validate

      @AliasFor(annotation=SerdeConfig.class, member="validate") boolean 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