MCPcopy Index your code
hub / github.com/coder/mux / formatZodIssues

Function formatZodIssues

src/node/services/agentDefinitions/agentDefinitionsService.ts:513–523  ·  view source on GitHub ↗
(
  issues: ReadonlyArray<{ path: readonly PropertyKey[]; message: string }>
)

Source from the content-addressed store, hash-verified

511}
512
513function formatZodIssues(
514 issues: ReadonlyArray<{ path: readonly PropertyKey[]; message: string }>
515): string {
516 return issues
517 .map((issue) => {
518 const issuePath =
519 issue.path.length > 0 ? issue.path.map((part) => String(part)).join(".") : "<root>";
520 return `${issuePath}: ${issue.message}`;
521 })
522 .join("; ");
523}
524
525function isPlainObject(value: unknown): value is Record<string, unknown> {
526 if (!value || typeof value !== "object" || Array.isArray(value)) {

Callers 1

resolveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected