# formatValidationIssues
Source: https://docs.maelstrom-ai.co/0.2/reference/engine/functions/formatvalidationissues/
Documentation revision: 89a8f5e9d10cedcf0b30376d7846113f06f26120
SDK manifests in this build: @maelstrom-co/react@0.2.1, @maelstrom-co/client@0.2.1, @maelstrom-co/connectors@0.2.1, @maelstrom-co/protocol@0.2.1, @maelstrom-co/engine@0.2.1
These docs follow this source revision. Manifest versions do not prove release compatibility; verify the installed package exports before using an API.

> **formatValidationIssues**(`error`): `string`

Defined in: packages/engine/src/lib/validation/format-validation-issues.ts:15

Renders every issue of a Zod validation error as one line, for the message of an error thrown when caller-supplied options fail validation.

Issues are joined with `;` . Each reads `path [code]: message`, with `(root)` standing in for an empty path. A union issue appends its failed branches in parentheses, separated by `|`; nested issues within a branch or a container issue are joined with `&`.

## Parameters

### error

`ZodError`

The error from a failed `safeParse` or `parse`.

## Returns

`string`

The formatted issues, never empty for a non-empty issue list.
