MCPcopy Index your code
hub / github.com/deepnote/deepnote / formatZodErrors

Function formatZodErrors

packages/cli/src/commands/validate.ts:138–144  ·  view source on GitHub ↗

* Format Zod validation errors into a more readable structure.

(error: { issues: ZodIssue[] })

Source from the content-addressed store, hash-verified

136 * Format Zod validation errors into a more readable structure.
137 */
138function 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}

Callers 1

validateDeepnoteFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected