Skip to main content

Interface: FormatZodIssuesOptions

Defined in: shared/utils/zodIssueFormatting.ts:20

Options for formatZodIssues.

Propertiesโ€‹

includePath?โ€‹

optional includePath?: boolean;

Defined in: shared/utils/zodIssueFormatting.ts:27

When true, prefix each message with a rendered path (e.g. foo.bar: ...).

Default Valueโ€‹

true;

pathSeparator?โ€‹

optional pathSeparator?: string;

Defined in: shared/utils/zodIssueFormatting.ts:34

Separator used when rendering the path.

Default Valueโ€‹

".";