Skip to content

feat: include detailed validation errors in parseEvent#73

Merged
tonyfromundefined merged 5 commits into
mainfrom
tony/verbose-validation-errors
Mar 13, 2026
Merged

feat: include detailed validation errors in parseEvent#73
tonyfromundefined merged 5 commits into
mainfrom
tony/verbose-validation-errors

Conversation

@tonyfromundefined

Copy link
Copy Markdown
Member

Validation failed errors now include detailed error messages instead of generic text.

The parser attempts to extract eventName from input for specific error context. When validation fails, it shows field-level details with paths and messages, making debugging much easier.

All 358 tests pass.

When validation fails in parseEvent(), now includes detailed error messages instead of generic "Validation failed". Attempts to match eventName from input for specific error context, falls back to collecting all schema errors.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Mar 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ventyd Ready Ready Preview, Comment Mar 13, 2026 11:36am

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
tonyfromundefined and others added 2 commits March 13, 2026 20:33
Replace fallback schema iteration with explicit error messages when eventName is missing or undeclared. Also simplify eventName extraction using optional chaining.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@tonyfromundefined tonyfromundefined merged commit 0033c1a into main Mar 13, 2026
3 checks passed
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.

1 participant