Skip to content

Support strong-typed identifiers as Marten Saga identity#2277

Merged
jeremydmiller merged 1 commit intomainfrom
strong-typed-id-marten-saga
Mar 9, 2026
Merged

Support strong-typed identifiers as Marten Saga identity#2277
jeremydmiller merged 1 commit intomainfrom
strong-typed-id-marten-saga

Conversation

@jeremydmiller
Copy link
Member

Summary

  • Expand saga identity validation to accept strong-typed ID types (e.g., OrderId, InvoiceId) in addition to primitive types (Guid, int, long, string)
  • Add code generation support for extracting strong-typed IDs from messages in PullSagaIdFromMessageFrame
  • Add 5 integration tests with OrderSagaId (StronglyTypedId wrapping Guid) covering start, handle, complete, cancel, and multi-step saga workflows
  • Add documentation section on strong-typed identifier usage for Marten saga storage

Test plan

  • All 5 new strong-typed ID saga tests pass
  • All 37 existing Marten saga compliance tests pass
  • All 57 CoreTests saga tests pass

🤖 Generated with Claude Code

Expand saga identity validation to accept strong-typed ID types (e.g.,
OrderId, InvoiceId) in addition to primitive types (Guid, int, long, string).
Add code generation support for extracting strong-typed IDs from messages
in PullSagaIdFromMessageFrame. Includes integration tests and documentation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant