Skip to content
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

Sanitize value before sending the request #30

Open
Eliepse opened this issue Jul 10, 2024 · 0 comments
Open

Sanitize value before sending the request #30

Eliepse opened this issue Jul 10, 2024 · 0 comments

Comments

@Eliepse
Copy link

Eliepse commented Jul 10, 2024

Hello !
This is not a bug, but a feature request.

Some times, when sending a request (like sending a transactional email), the request is rejected by the server because some fields are present but empty. I think it would be very beneficial in such case to have a sanitation pass to null some optional elements.

Here are two causes of rejection I faced when sending a transactional :

  • empty "name" for sender, etc. (the field shouldn't be empty if present),
  • empty "attachments" array

Would be great to have the Brevo package that do that bit extra validation/sanitation.
Thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant