max()
Validates that the array has at most the specified number of items.
max(length: number, error?: StringConvertible): this;
Parameters
- length — The maximum number of items.
- error — Custom error message.
Return value
This builder, for chaining.
Related
interface Schema.ArrayBuilder static
A validation builder for array values.
