bupkis
    Preparing search index...

    Function toDotPath

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

      From

      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

      • _path: readonly (string | number | symbol | PathSegment)[]

      Returns string