Skip to content

fix: accept string request field in stripeEventSchema#335

Open
mattmueller-stripe wants to merge 1 commit into
stripe:devfrom
mattmueller-stripe:fix/stripe-event-schema-string-request
Open

fix: accept string request field in stripeEventSchema#335
mattmueller-stripe wants to merge 1 commit into
stripe:devfrom
mattmueller-stripe:fix/stripe-event-schema-string-request

Conversation

@mattmueller-stripe
Copy link
Copy Markdown
Contributor

Summary

  • Older Stripe API versions send request as a plain string (e.g. "req_xxxxx") rather than an object. The schema rejected these, silently dropping webhook records. Accept both formats via z.union.

How to test (optional)

Related

  • Closes #

Thanks for contributing ❤️

Older Stripe API versions send `request` as a plain string (e.g.
"req_xxxxx") rather than an object. The schema rejected these, silently
dropping webhook records. Accept both formats via z.union.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Committed-By-Agent: claude
Copy link
Copy Markdown
Contributor

@kdhillon-stripe kdhillon-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mattmueller-stripe branch should be main

@mattmueller-stripe mattmueller-stripe changed the base branch from dev to main May 12, 2026 22:30
@mattmueller-stripe mattmueller-stripe changed the base branch from main to dev May 12, 2026 22:31
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