Skip to content

Commit

Permalink
format issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ragokan committed Sep 9, 2024
1 parent d4ca461 commit b4a4bc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/validation/formatIssues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function __formatIssues(
return issues.map((issue) => ({
message: issue.message,
validation:
(issue as v.BaseIssue<any>).kind ?? (issue as z.ZodIssue).code ?? "",
(issue as z.ZodIssue).code ?? (issue as v.BaseIssue<any>).kind ?? "",
path:
issue.path?.map((k) => (__isPathItem(k) ? k.key : (k as string))) ?? [],
}));
Expand Down

0 comments on commit b4a4bc9

Please sign in to comment.