MCPcopy Create free account
hub / github.com/deepnote/deepnote / formatZodIssue

Function formatZodIssue

packages/mcp/src/tools/reading.ts:423–429  ·  view source on GitHub ↗
(issue: ZodIssue)

Source from the content-addressed store, hash-verified

421}
422
423function formatZodIssue(issue: ZodIssue): { path: string; message: string; code: string } {
424 return {
425 path: issue.path.join('.'),
426 message: issue.message,
427 code: issue.code,
428 }
429}
430
431async function handleValidate(args: Record<string, unknown>) {
432 const parsedArgs = validateArgsSchema.safeParse(args)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected