* Format Zod validation errors into a more readable structure.
(error: { issues: ZodIssue[] })
| 136 | * Format Zod validation errors into a more readable structure. |
| 137 | */ |
| 138 | function formatZodErrors(error: { issues: ZodIssue[] }): ValidationIssue[] { |
| 139 | return error.issues.map(issue => ({ |
| 140 | path: issue.path.join('.'), |
| 141 | message: issue.message, |
| 142 | code: issue.code, |
| 143 | })) |
| 144 | } |
no outgoing calls
no test coverage detected