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
{{ message }}
Repository navigation
ToolsTab: anyOf/$ref enum not resolved; optional enum fields not clearable (appear required) #897
ToolsTab does not correctly handle input schema with anyOf/$ref/enum:
anyOf=[$ref, null] (e.g., role) is not resolved, so enum is lost and UI cannot render a dropdown.
When falling back to nested/complex rendering, ToolsTab passes a trimmed schema (type/properties/description/items only) to DynamicJsonForm, dropping anyOf/$ref/enum.
String enum select in ToolsTab has no clear/empty option; optional fields become effectively required after selection.
To Reproduce
Open Inspector, Tools tab.
Select a tool whose input schema matches the minimal schema below (role anyOf $ref|null, is_active boolean|null).
Observe: role is not rendered as an enum dropdown; selecting a string enum (where present) cannot be cleared back to undefined/null.
Expected behavior
anyOf=[$ref, null] renders as a dropdown with enum values and supports null/clearing.
Optional enum fields can be cleared (undefined or null per schema).
Downstream forms receive full schema (including anyOf/$ref/enum) for accurate rendering.
Screenshots
N/A (UI shows non-dropdown for role; optional enum cannot be cleared).
Environment (please complete the following information):
Activity