We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When you set a field as a timestamp it is accepting an empty string as a valid value.
Joi.assert('', Joi.date().timestamp().required());
No error thrown.
Should throw an error as '' is not a valid timestamp
The text was updated successfully, but these errors were encountered:
1a8bfcb
Thanks for the report, it's fixed.
Sorry, something went wrong.
Thank you for such a quick fix and for maintaining this!
Marsup
No branches or pull requests
Context
What are you trying to achieve or the steps to reproduce ?
When you set a field as a timestamp it is accepting an empty string as a valid value.
Which result you had ?
No error thrown.
What did you expect ?
Should throw an error as '' is not a valid timestamp
The text was updated successfully, but these errors were encountered: