yup string max length code example
Example: yup max length
string.length(limit: number | Ref, message?: string | function): Schema
//Set a required length for the string value. The ${length} interpolation can be used in the message argument
string.min(limit: number | Ref, message?: string | function): Schema
//Set a minimum length limit for the string value. The ${min} interpolation can be used in the message argument
string.max(limit: number | Ref, message?: string | function): Schema
//Set a maximum length limit for the string value. The ${max} interpolation can be used in the message argument