MCPcopy Index your code
hub / github.com/codeaashu/claude-code / formatZodErrors

Function formatZodErrors

src/utils/plugins/validatePlugin.ts:75–81  ·  view source on GitHub ↗

* Format Zod validation errors into a readable format

(zodError: z.ZodError)

Source from the content-addressed store, hash-verified

73 * Format Zod validation errors into a readable format
74 */
75function 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.

Callers 3

validatePluginManifestFunction · 0.85
validateHooksJsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected