Annotation Interface Maximum
An annotation to provide a hint in the OpenAPI schema that a number field has a maximum value.
The value is a string that must be parsable to the same number type as the field the annotation
is applied to. Parsing is accomplished by using the
valueOf(String) method of the
corresponding type (i.e. Integer.valueOf(String)).
If the exclusive flag is set to false (default), the maximum value is inclusive, meaning the field must be equal to or less than the value. If the exclusive flag is set to true, the maximum value is exclusive, meaning the field must be less than the value.
To set a range of values, use both the Minimum and Maximum annotations.
- See Also:
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
value
String value
-
-
-
exclusive
boolean exclusive- Default:
- false
-