Skip to content

Add #[serde(default)] to to field of SimpleEmailCommonHeaders - #1171

Merged
darklight3it merged 1 commit into
aws:mainfrom
Supreeeme:patch-1
Sep 29, 2026
Merged

darklight3it merged 1 commit into
aws:mainfrom
Supreeeme:patch-1

Conversation

@Supreeeme

Copy link
Copy Markdown

✍️ Description of changes:
An SES event can be missing the to field, and without this can cause deserialization to fail. I can reproduce this, for example, by sending an email from Outlook to SES where all the recipients are only in the Bcc field.

🔏 By submitting this pull request

  • I confirm that I've ran cargo +nightly fmt.
  • I confirm that I've ran cargo clippy --fix.
  • I confirm that I've made a best effort attempt to update all relevant documentation.
  • I confirm that my contribution is made under the terms of the Apache 2.0 license.

Comment thread lambda-events/src/event/ses/mod.rs
An SES event can be missing the `to` field, and without this can cause deserialization to fail.
@darklight3it
darklight3it merged commit 5670a2e into aws:main Sep 29, 2026
12 checks passed
@darklight3it darklight3it mentioned this pull request Sep 29, 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.

2 participants