-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validation error for empty strings #140
Comments
Have you tried using the empty rule?
Personally I would clean the object so you're not storing empty strings |
I was able to suppress the TypeScript error message for
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
the validator throws an error if a string property is empty, e.g.
phone = ''
. I defined the propertyphone
on the model as follows:I get the following error stack trace:
I understand that this validation error comes from another library, however, I was wondering if there's a parameter which can be passed to enable empty strings. Otherwise, what is the desired outcome for
required: false
?Thank you for sour support!
The text was updated successfully, but these errors were encountered: