handling-validation-errors
CommunityTurn z-schema errors into actionable UI feedback.
Software Engineering#validation#errors#validate#form-validation#error-mapping#z-schema#schema-errors
Authorzaggino
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill helps developers interpret and present z-schema validation errors in a user-friendly way, transforming raw SchemaErrorDetail data into actionable feedback for applications.
Core Features & Use Cases
- Inspect and traverse error trees produced by anyOf, oneOf, and not to surface root causes.
- Flatten leaf errors and map them to form fields for UI validation messaging.
- Convert error codes and paths into user-friendly messages, with support for path arrays and custom mappings.
- Filter errors by code or include/exclude lists and build per-field error summaries.
- Stop on first error if needed and leverage keyword information to categorize issues.
Quick Start
Validate data with ZSchema, catch the resulting ValidateError, and map the details to UI-friendly form errors.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: handling-validation-errors Download link: https://github.com/zaggino/z-schema/archive/main.zip#handling-validation-errors Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.