Skip to content

fix(firestore-send-email): improve attachments validation error message (rebased)#2783

Draft
IzaakGough wants to merge 11 commits intonextfrom
rebased-@invertase/improve-email-attachment-error-message
Draft

fix(firestore-send-email): improve attachments validation error message (rebased)#2783
IzaakGough wants to merge 11 commits intonextfrom
rebased-@invertase/improve-email-attachment-error-message

Conversation

@IzaakGough
Copy link
Copy Markdown
Contributor

@IzaakGough IzaakGough commented Apr 20, 2026

Fixes #2550

supersedes #2583

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request improves error messaging for the attachments field by providing more descriptive feedback when the field is not an array and updating the formatZodError function to handle custom messages and missing fields. A review comment suggests refining the error formatting logic to be more generic, fixing grammatical issues in generated messages, and maintaining terminology consistency by using the term map instead of object.

Comment thread firestore-send-email/functions/src/validation.ts
@IzaakGough IzaakGough requested a review from cabljac April 20, 2026 15:53
@IzaakGough IzaakGough changed the title Rebased @invertase/improve email attachment error message fix(firestore-send-email): improve attachments validation error message (rebased) Apr 20, 2026
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

Successfully merging this pull request may close these issues.

🐛 [firestore-send-email] Delivery fails consistently with "Expected array, received object" (SMTP/Mandrill)

3 participants