Annotation Interface Validation.Valid

Enclosing class:
Validation

@Retention(CLASS) @Target({METHOD,FIELD,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Intercepted public static @interface Validation.Valid
Mark an element as validated even when no explicit constraints are added on it to validate the nested object structure.

Each object must be annotated with Validation.Validated, as otherwise we cannot know what to do (Helidon only supports build-time generated validations, we do not use reflection to analyze types).

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Can be set to false to explicitly disable all validations on this element.
  • Element Details

    • value

      boolean value
      Can be set to false to explicitly disable all validations on this element.
      Returns:
      whether to validate an element (deep validation)
      Default:
      true