📜 Description
Currently when pass in empty string as subscriber email will get email validation error but null won't. Novu should treat empty string as null.
👟 Reproduction steps
- call any api endpoint that can create a subscriber (create subscriber endpoint or trigger event endpoint) and pass empty string as email.
👍 Expected behavior
Should not return email validation error
👎 Actual Behavior with Screenshots
return email validation error
Novu version
self host novu
npm version
No response
node version
No response
📃 Provide any additional context for the Bug.
No response
👀 Have you spent some time to check if this bug has been raised before?
🏢 Have you read the Contributing Guidelines?
Are you willing to submit PR?
None