mirror of
https://github.com/mendableai/firecrawl.git
synced 2025-08-11 10:18:42 +00:00
fix(scrapeURL/llmExtract): array schema fix
This commit is contained in:
parent
552d55c8fc
commit
0588f340c3
@ -25,6 +25,11 @@ function normalizeSchema(x: any): any {
|
|||||||
properties: Object.fromEntries(Object.entries(x.properties).map(([k, v]) => [k, normalizeSchema(v)])),
|
properties: Object.fromEntries(Object.entries(x.properties).map(([k, v]) => [k, normalizeSchema(v)])),
|
||||||
additionalProperties: false,
|
additionalProperties: false,
|
||||||
}
|
}
|
||||||
|
} else if (x && x.type === "array") {
|
||||||
|
return {
|
||||||
|
...x,
|
||||||
|
items: normalizeSchema(x.items),
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user