fix(v1/zod): formats: add error message if both sc and sc@fP

This commit is contained in:
Gergő Móricz 2024-09-18 19:35:27 +02:00
parent 255db84879
commit c28e1e2959
1 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,8 @@ export const scrapeOptions = z.object({
])
.array()
.optional()
.default(["markdown"]),
.default(["markdown"])
.refine(x => !(x.includes("screenshot") && x.includes("screenshot@fullPage")), "You may only specify either screenshot or screenshot@fullPage"),
headers: z.record(z.string(), z.string()).optional(),
includeTags: z.string().array().optional(),
excludeTags: z.string().array().optional(),