z-schema reports validation errors as ValidateError objects containing a .details array of SchemaErrorDetail. This skill covers inspecting, filtering, mapping, and presenting these errors.
| .name | string | Always 'z-schema validation error' | | .message | string | Summary message | | .details | SchemaErrorDetail[] | All individual errors |
| message | string | Human-readable text, e.g. "Expected type string but found type number" | | code | string | Machine-readable code, e.g. "INVALIDTYPE" | | params | (string \| number \| Array)[] | Values filling the message template placeholders | | path | string \| Array | JSON Pointer to the failing value ("#/age" or ["age"]) |
Inspects, filters, and maps z-schema validation errors for application use. Use when the user needs to handle validation errors, walk nested inner errors from anyOf/oneOf/not combinators, map error codes to user-friendly messages, filter errors with includeErrors or excludeErrors, build form-field error mappers, use reportPathAsArray, interpret SchemaErrorDetail fields like code/path/keyword/inner, or debug why validation failed. Source: zaggino/z-schema.