@Target(FIELD) @Retention(RUNTIME) public @interface Required
An annotation to provide a hint in the OpenAPI schema that the field is required.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    A helpful hint on whether the field is required.
  • Element Details

    • value

      boolean value
      A helpful hint on whether the field is required.
      Default:
      true