MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / formatZodIssues

Function formatZodIssues

src/core/config/importExport.ts:76–78  ·  view source on GitHub ↗
(error: ZodError)

Source from the content-addressed store, hash-verified

74const globalSettingsShape = globalSettingsSchema.shape as Record<keyof GlobalSettings, z.ZodTypeAny>
75
76function formatZodIssues(error: ZodError): string {
77 return error.issues.map((issue) => `[${issue.path.join(".") || "value"}]: ${issue.message}`).join(", ")
78}
79
80function sanitizeGlobalSettings(rawGlobalSettings: unknown): {
81 sanitizedGlobalSettings: GlobalSettings

Callers 1

sanitizeGlobalSettingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected