If the value is null or undefined the minStringLength and maxStringLength validations will error out, preventing any validation from occurring. Instead let's use isString to strictly check the value type and then let minStringLength and maxStringLength only apply to strings.
If the value is null or undefined the minStringLength and maxStringLength validations will error out, preventing any validation from occurring. Instead let's use isString to strictly check the value type and then let minStringLength and maxStringLength only apply to strings.