Package io.dropwizard.validation
Annotation Type MaxSize
-
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(RUNTIME) @Documented @Constraint(validatedBy=MaxSizeValidator.class) public @interface MaxSize
The annotated element must be aSize
whose value must be less than or equal to the specified maximum.null
elements are considered valid
-
-
-
message
String message
- Default:
- "must be less than or equal to {value} {unit}"
-
-
-
groups
Class<?>[] groups
- Default:
- {}
-
-
-
payload
Class<? extends javax.validation.Payload>[] payload
- Default:
- {}
-
-
-
unit
SizeUnit unit
- Returns:
- unit of the value the element must be less than or equal to
- Default:
- io.dropwizard.util.SizeUnit.BYTES
-
-