A single decoding failure with a human-readable message and the path from the root of the decoded value to the field that failed.
// A failure at users[2].name would look like:const issue: DecodingIssue = { message: '"null" is not a valid string', path: ['users', 2, 'name'] }; Copy
// A failure at users[2].name would look like:const issue: DecodingIssue = { message: '"null" is not a valid string', path: ['users', 2, 'name'] };
Readonly
Path segments from the decoded root to the failing field. An empty array means the failure is at the root level.
A single decoding failure with a human-readable message and the path from the root of the decoded value to the field that failed.
Example