Package ninja.validation
Annotation Type Required
-
@Retention(RUNTIME) @Target(PARAMETER) @Deprecated public @interface Required
Deprecated.Please use Optional in controller method instead.Validates that the length of the field meets the given length constraints- Author:
- James Roper
-
-
Element Detail
-
key
String key
Deprecated.The key for the violation message- Returns:
- The key of the violation message
- Default:
- "validation.required.violation"
-
-
-
message
String message
Deprecated.Default message if the key isn't found- Returns:
- The default message
- Default:
- "{0} is required"
-
-
-
fieldKey
String fieldKey
Deprecated.The key for formatting the field- Returns:
- The key
- Default:
- ""
-
-