Primitives¶
By default the error message will be Value is not of type {primitive}
. You can change it via:
Lists¶
This constraint validates the input is an array
and all values are consecutive (1).
- No index value specified, be it
int
s orstring
s.
You can also validate that each value in the list is of a given type. Here's how to validate a list os string
s: