Skip to content

🐛 Bug Report: Pass in empty string as subscriber Email will trigger email validation. #8944

@iqoOopi

Description

@iqoOopi

📜 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

  1. 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?

  • I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to submit PR?

None

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions