formatZodError() — astro Function Reference
Architecture documentation for the formatZodError() function in errors.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 202262d8_b252_d3ba_7b3f_5aedb620a826["formatZodError()"] 244bd8fe_4d6f_01c4_922b_3ce9b01593be["errors.ts"] 202262d8_b252_d3ba_7b3f_5aedb620a826 -->|defined in| 244bd8fe_4d6f_01c4_922b_3ce9b01593be decf500d_3746_2ab0_cffd_4294264482ce["constructor()"] decf500d_3746_2ab0_cffd_4294264482ce -->|calls| 202262d8_b252_d3ba_7b3f_5aedb620a826 ae0cabb0_1b68_899d_0aa1_2d3f9ad75a05["constructor()"] ae0cabb0_1b68_899d_0aa1_2d3f9ad75a05 -->|calls| 202262d8_b252_d3ba_7b3f_5aedb620a826 style 202262d8_b252_d3ba_7b3f_5aedb620a826 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/content/loaders/errors.ts lines 3–5
function formatZodError(error: z.$ZodError): string[] {
return error.issues.map((issue) => ` **${issue.path.join('.')}**: ${issue.message}`);
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does formatZodError() do?
formatZodError() is a function in the astro codebase, defined in packages/astro/src/content/loaders/errors.ts.
Where is formatZodError() defined?
formatZodError() is defined in packages/astro/src/content/loaders/errors.ts at line 3.
What calls formatZodError()?
formatZodError() is called by 2 function(s): constructor, constructor.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free