Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Validate event data against zod schema #410

Open
elbalexandre opened this issue Nov 24, 2023 · 0 comments
Open

[Feature] Validate event data against zod schema #410

elbalexandre opened this issue Nov 24, 2023 · 0 comments
Labels
⬆️ improvement Performance, reliability, or usability improvements 📦 inngest Affects the `inngest` package

Comments

@elbalexandre
Copy link

Is your feature request related to a problem? Please describe.
Event data is not validated against Zod schemas used for defining Inngest client event schemas.

Describe the solution you'd like
When Zod schemas are used, the send() function should validate the provided data against the corresponding Zod schema.

Describe alternatives you've considered
An alternative could be to remove EventSchemas.fromZod. This might be less ambiguous, as users familiar with Zod know they can use z.infer.

Additional context
N/A

@jpwilliams jpwilliams added ⬆️ improvement Performance, reliability, or usability improvements 📦 inngest Affects the `inngest` package labels Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⬆️ improvement Performance, reliability, or usability improvements 📦 inngest Affects the `inngest` package
Projects
None yet
Development

No branches or pull requests

2 participants