[Feature] Validate event data against zod schema #410
Labels
⬆️ improvement
Performance, reliability, or usability improvements
📦 inngest
Affects the `inngest` package
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
The text was updated successfully, but these errors were encountered: