Skip to content

Function: toDotPath()

ts
function toDotPath(_path: readonly (string | number | symbol | PathSegment)[]): string;

Defined in: node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.d.cts:218

Format a ZodError as a human-readable string in the following form.

From

ts
ZodError {
  issues: [
    {
      expected: 'string',
      code: 'invalid_type',
      path: [ 'username' ],
      message: 'Invalid input: expected string'
    },
    {
      expected: 'number',
      code: 'invalid_type',
      path: [ 'favoriteNumbers', 1 ],
      message: 'Invalid input: expected number'
    }
  ];
}

to

username
  ✖ Expected number, received string at "username
favoriteNumbers[0]
  ✖ Invalid input: expected number

Parameters

ParameterType
_pathreadonly (string | number | symbol | PathSegment)[]

Returns

string

Matterway Assistant SDK Documentation