mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-05 15:00:39 +08:00
fix(scrapeURL/llmExtract): fill in required field as well
This commit is contained in:
parent
0588f340c3
commit
79cadcb769
@ -23,6 +23,7 @@ function normalizeSchema(x: any): any {
|
||||
return {
|
||||
...x,
|
||||
properties: Object.fromEntries(Object.entries(x.properties).map(([k, v]) => [k, normalizeSchema(v)])),
|
||||
required: Object.keys(x.properties),
|
||||
additionalProperties: false,
|
||||
}
|
||||
} else if (x && x.type === "array") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user