fix(errors): preserve actionable analysis diagnostics

This commit is contained in:
morluto
2026-07-29 07:18:29 +00:00
parent 969519c00f
commit 0f96bf365c
9 changed files with 119 additions and 6 deletions
+7 -1
View File
@@ -46,7 +46,13 @@ const projectIssue = (
expected: issue.values.filter(isSafeExpected),
},
];
return [{ path, reason: "invalid_value" }];
return [
{
path,
reason: "invalid_value",
...(issue.message.length > 0 ? { message: issue.message } : {}),
},
];
};
const valueAtPath = (