Schema Validation
Every Junction event can be validated against a Zod contract. Invalid events are caught immediately — not discovered in dashboards weeks later.
Event Builder
Break It
Fire intentionally invalid events to see Zod validation in action.
Strict vs Lenient
Strict Mode
Invalid events are dropped. They never reach any destination. The collector emits event:invalid for monitoring.
Lenient Mode
Invalid events trigger a warning but still pass through to destinations. Useful during migration or when you want to monitor before enforcing.
Registered Contracts
These Zod schemas are registered with Junction. Events matching these entity:action pairs are validated at runtime.
Fired when a user views a product detail page.
z.object({
product_id: z.string(),
name: z.string(),
price: z.number(),
currency: z.string(),
category: z.string()
})