mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 04:25:01 +00:00
feat: improve ZodIssue rendering in config validation
This commit is contained in:
parent
ac8926cdb8
commit
cbec80981d
2 changed files with 13 additions and 3 deletions
6
backend/src/utils/formatZodIssue.ts
Normal file
6
backend/src/utils/formatZodIssue.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
import { ZodIssue } from "zod";
|
||||
|
||||
export function formatZodIssue(issue: ZodIssue): string {
|
||||
const path = issue.path.join("/");
|
||||
return `${path}: ${issue.message}`;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue