Skip to content

feat: add typed message tags - #32

Merged
bjarn merged 1 commit into
mainfrom
eng-577-typed-message-tags
Sep 10, 2026
Merged

feat: add typed message tags#32
bjarn merged 1 commit into
mainfrom
eng-577-typed-message-tags

Conversation

@bjarn

@bjarn bjarn commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add the MessageTag value object for reusable name and value tags.
  • Accept MessageTag objects and the existing array input in EmailEndpoint::tags().
  • Keep EmailEndpoint::tag() for the legacy single tag.
  • Serialize both input forms to the same Sending API wire format.

Validation

  • Enforce the documented name and value formats.
  • Reject reserved __lettermint names without regard to case.
  • Reject duplicate case-sensitive names.
  • Allow 20 total tags, including the legacy single tag.

Documentation

  • Add typed tag usage to the README.

Verification

  • composer test
  • composer analyse

@bjarn
bjarn requested a review from Bjornftw September 10, 2026 17:54
@bjarn bjarn changed the title feat: add typed message tags (ENG-577) feat: add typed message tags Sep 10, 2026
@bjarn
bjarn requested a review from Bjornftw September 10, 2026 17:55
@bjarn
bjarn merged commit 269edeb into main Sep 10, 2026
15 checks passed
@bjarn
bjarn deleted the eng-577-typed-message-tags branch September 10, 2026 17:56
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