Binds a validator to the given path that requires the length of the value to be less than or
equal to the given maxLength.
This function can only be called on string or array paths.
In addition to binding a validator, this function adds MAX_LENGTH property to the field.
Jump to details