Skip to content

fix(source-stripe): accept string request field in stripeEventSchema#375

Merged
mattmueller-stripe merged 1 commit into
mainfrom
fix-stripe-event-schema-string-request
May 13, 2026
Merged

fix(source-stripe): accept string request field in stripeEventSchema#375
mattmueller-stripe merged 1 commit into
mainfrom
fix-stripe-event-schema-string-request

Conversation

@mattmueller-stripe
Copy link
Copy Markdown

Older Stripe API versions send event.request as a plain string (the request ID), not the { id, idempotency_key } object used by modern versions. When sdb-webhook-srv forwards these raw events as source_input messages, Zod rejects the string at parse time, silently dropping the record from the sync pipeline.

Widen the schema to accept both formats via z.union.

Committed-By-Agent: claude

Summary

How to test (optional)

Related

  • Closes #

Thanks for contributing ❤️

Older Stripe API versions send `event.request` as a plain string (the
request ID), not the `{ id, idempotency_key }` object used by modern
versions. When sdb-webhook-srv forwards these raw events as source_input
messages, Zod rejects the string at parse time, silently dropping the
record from the sync pipeline.

Widen the schema to accept both formats via z.union.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Committed-By-Agent: claude
@mattmueller-stripe mattmueller-stripe merged commit 199807e into main May 13, 2026
18 of 19 checks passed
@mattmueller-stripe mattmueller-stripe deleted the fix-stripe-event-schema-string-request branch May 13, 2026 18:53
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