You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the Bug
There appears to be a mismatch between Firecrawl's TypeScript type definitions and its API expectations for schema validation. The TypeScript types expect a Zod schema (ZodType<any, ZodTypeDef, any>), but the API expects a JSON Schema format with specific requirements for the required array property.
To Reproduce
Steps to reproduce the issue:
Create a schema for Firecrawl's extract option
Try to satisfy both TypeScript types and API requirements:
Failed to scrape URL. Status code: 500. Error: (Internal server error) - 400 Invalid schema for response_format 'websiteContent': In context=(), 'required' is required to be supplied and to be an array including every key in properties. Missing 'identifier'.
Additional Context
The issue appears in the schema validation for the extract option of the scrape endpoint
We've tried both Zod schemas and JSON Schema formats
Using type assertions works around the TypeScript error but doesn't resolve the underlying type definition issue
This affects any application trying to use strongly-typed schemas with Firecrawl
The text was updated successfully, but these errors were encountered:
Sorry team. I'm self hosting, set this up rather quick, I assume thats the problem. Any confirmation would be great, excited to use. Leaving this issue here so others that might run into it, know what the problem is
Describe the Bug
There appears to be a mismatch between Firecrawl's TypeScript type definitions and its API expectations for schema validation. The TypeScript types expect a Zod schema (
ZodType<any, ZodTypeDef, any>
), but the API expects a JSON Schema format with specific requirements for therequired
array property.To Reproduce
Steps to reproduce the issue:
required
arrayExpected Behavior
The TypeScript types should align with the API's actual requirements. Either:
Environment
Logs
TypeScript Error:
Runtime Error:
Additional Context
extract
option of the scrape endpointThe text was updated successfully, but these errors were encountered: