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
I'm trying to use the "JSON Structured Output" feature in a LLM node in Flowise. Specifically, I select Type: JSON Array and then provide a schema.
However, no matter which schema I use – even minimal or official examples – the node always fails immediately with the following error:
Error in LLM node: 400 Invalid schema for response_format 'extract': In context=('properties', 'jobPosting', 'items', 'additionalProperties'), schema must have a 'type' key.
What I tried
Multiple valid schemas, including:
Manually created minimal schemas
Schemas with and without additionalProperties
Schemas with only type, properties, required, items
Expected
The schema should be accepted and used to extract structured values from the LLM output, or at least allow testing without error.
Actual
The LLM node fails immediately on save, and I cannot proceed. The error always references additionalProperties, even if it's not part of the schema.
Question
Is there a strict internal schema format expected beyond JSON Schema Draft-07?
Is this a known issue with the JSON Array type in "JSON Structured Output"?
If possible, could you please provide a working example of the schema format that is expected in this context?
Thanks in advance for any help or clarification!
The text was updated successfully, but these errors were encountered:
Update / Additional Info – enum appears to break schema validation
While further testing, I discovered that the schema validation fails as soon as an enum is added inside an array of objects, even if everything else remains the same.
Error in LLM node: 400 Invalid schema for response_format 'extract':
In context=('properties', 'jobPosting', 'items', 'additionalProperties'), schema must have a 'type' key.
Even trying to work around this with:
"additionalProperties": { "type": "object" }
…does not resolve the issue reliably.
My suspicion
It looks like the enum keyword triggers internal validation logic that expects the surrounding object to define additionalProperties with a type, and if that's not present, it fails – even if additionalProperties is not needed or defined.
This is very likely a bug (or undocumented restriction) in Flowise's schema handling (possibly inherited from LangChain or Pydantic).
Request
Could you please clarify:
Is using enum in object-array properties supported?
If yes, what’s the exact shape required to avoid this additionalProperties/type error?
Happy to provide a reproducible Flowise flow or LLM node setup if needed.
Hi team,
I'm trying to use the "JSON Structured Output" feature in a LLM node in Flowise. Specifically, I select Type: JSON Array and then provide a schema.
However, no matter which schema I use – even minimal or official examples – the node always fails immediately with the following error:
Error in LLM node: 400 Invalid schema for response_format 'extract': In context=('properties', 'jobPosting', 'items', 'additionalProperties'), schema must have a 'type' key.
What I tried
Multiple valid schemas, including:
Even the official example schema from https://json-schema.org/learn/json-schema-examples#job-posting
All result in the exact same error – even before the LLM is queried
Minimal example (that fails immediately)
Expected
The schema should be accepted and used to extract structured values from the LLM output, or at least allow testing without error.
Actual
The LLM node fails immediately on save, and I cannot proceed. The error always references additionalProperties, even if it's not part of the schema.
Question
If possible, could you please provide a working example of the schema format that is expected in this context?
Thanks in advance for any help or clarification!
The text was updated successfully, but these errors were encountered: