lte()
Validates that the number is less than or equal to the specified value; alias for max.
lte(value: number, error?: StringConvertible): this;
Parameters
- value — The value to compare against (inclusive).
- error — Custom error message.
Return value
This builder, for chaining.
Related
interface Schema.NumberBuilder static
A validation builder for number values.
