Renders a DecodingIssue path as a human-readable location string.
path
Object keys are joined with dots, while array indices use bracket notation, matching the convention developers expect from JSON paths.
The structured path from the decoded root to the failing field.
The location string (empty for a root-level issue).
formatIssuePath(['user', 'name']); // 'user.name'formatIssuePath(['user', 'roles', 1]); // 'user.roles[1]'formatIssuePath([0, 'email']); // '[0].email' Copy
formatIssuePath(['user', 'name']); // 'user.name'formatIssuePath(['user', 'roles', 1]); // 'user.roles[1]'formatIssuePath([0, 'email']); // '[0].email'
Renders a DecodingIssue
pathas a human-readable location string.Object keys are joined with dots, while array indices use bracket notation, matching the convention developers expect from JSON paths.