mirror of
https://github.com/langchain-ai/langserve.git
synced 2026-07-16 09:34:30 -04:00
Input type with Optional field breaks Playground
#237
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jmaness on GitHub (Oct 16, 2024).
If a chain has an input type containing an optional field, the Playground page fails to load (blank page), and the following error is logged in the browser console:
Example input type:
The generated input schema looks like:
and the
{"type":"null"}seems to cause an issue with jsonforms.Should the generated input schema be the following instead?
@jmaness commented on GitHub (Oct 16, 2024):
From reading through https://json-schema.org/understanding-json-schema/reference/object#required, it seems like the generated schema using
anyOfand{"type":"null"}should be valid for optional properties, so perhaps this is a bug in jsonforms after all.@tdakanalis commented on GitHub (Oct 25, 2024):
Any fix or workaround on this?
@eyurtsev commented on GitHub (Nov 5, 2024):
duplicate of: https://github.com/langchain-ai/langserve/issues/777