mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-04 18:10:41 +08:00
fix(v1/zod): formats: add error message if both sc and sc@fP
This commit is contained in:
parent
255db84879
commit
c28e1e2959
@ -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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user