Skip to content

fix(receiving): type received email header values as strings - #152

Merged
felipefreitag merged 3 commits into
mainfrom
fix/received-email-response-fields
Nov 24, 2026
Merged

felipefreitag merged 3 commits into
mainfrom
fix/received-email-response-fields

Conversation

@felipefreitag

@felipefreitag felipefreitag commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

The received email schema now says that header values are strings and header names are lowercase. The old schema left the value type open, so SDK maintainers could not tell if a value can be a list (resend/resend-rust#141). The API code and live responses only ever return strings.

Not covered. The spec does not promise a format for headers with several values, such as references. Today they come back as JSON-encoded text, which is a fallback in the inbound consumer and not a designed format.

Add html_format (query and response), authentication and raw.
Type header values as strings with lowercase names.
Drop html_format, authentication and raw. They go in their own PR
and rollout. Drop the JSON-encoding note until backend confirms it.
@felipefreitag felipefreitag changed the title fix(receiving): match the received email schema to the API fix(receiving): type received email header values as strings Nov 24, 2026
@felipefreitag
felipefreitag merged commit b762fef into main Nov 24, 2026
3 checks passed
@felipefreitag
felipefreitag deleted the fix/received-email-response-fields branch November 24, 2026 14:10
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.

2 participants