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"]) |
애플리케이션 사용에 대한 z-스키마 유효성 검사 오류를 검사, 필터링 및 매핑합니다. 사용자가 유효성 검사 오류를 처리하고, anyOf/oneOf/not 조합자에서 중첩된 내부 오류를 살펴보고, 오류 코드를 사용자에게 친숙한 메시지로 매핑하고, includeErrors 또는 제외 오류로 오류를 필터링하고, 양식 필드 오류 매퍼를 구축하고, reportPathAsArray를 사용하고, 코드/경로/키워드/내부와 같은 SchemaErrorDetail 필드를 해석하거나 유효성 검사가 실패한 이유를 디버깅해야 하는 경우에 사용하세요. 출처: zaggino/z-schema.