MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / formatZodErrors

Function formatZodErrors

source code/utils/plugins/validatePlugin.ts:77–83  ·  view source on GitHub ↗

* Format Zod validation errors into a readable format

(zodError: z.ZodError)

Source from the content-addressed store, hash-verified

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

Callers 3

validatePluginManifestFunction · 0.85
validateHooksJsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected