* Format Zod validation errors into a readable format
(zodError: z.ZodError)
| 73 | * Format Zod validation errors into a readable format |
| 74 | */ |
| 75 | function formatZodErrors(zodError: z.ZodError): ValidationError[] { |
| 76 | return zodError.issues.map(error => ({ |
| 77 | path: error.path.join('.') || 'root', |
| 78 | message: error.message, |
| 79 | code: error.code, |
| 80 | })) |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * Check for parent-directory segments ('..') in a path string. |
no outgoing calls
no test coverage detected