Email validation is not proper
anistark opened this issue · comments
This name@com
should throw an error.
I'm not sure I understand your question, could you please clarify and provide an example?
Valid Email format: jouzalol@gmail.com
Invalid Email formats:
jouzalol@com
jouzalol@gmail
jouzalolgmailcom
jouzalolgmailcom
But this returns jouzalol@com
as a valid format. Should throw an error.
It seems like your issue might be related to ajv itself, please open an issue there. Closing this for now, if it turns out it's related to this middleware, I'll reopen.
@titib I'm curious to understand your issue a little better. Are you using ajv-formats to add support for the email
format to Ajv?
@simonplend Yes, to solve the issue, I used ajv-formats.
Great, that's the official way to do validation of properties with the email
format in Ajv v8.