Files
docker-agent/e2e/testdata
Simon Ferquel's Clanker b8f809d2d6 openai: express nullable arrays and objects as anyOf in strict tool schemas
makeAllRequired made optional properties nullable by rewriting
"type": "array" to ["array", "null"]. OpenAI's Responses API with
strict: true rejects that form with an opaque "Invalid schema for
function" error when the property lives in an object reached through a
$defs entry that itself contains a $ref or an anyOf of $refs (for
example the Notion MCP server's query-sessions tool).

Express nullable array and object properties, both newly nullable and
already declared as a type pair, as {"anyOf": [<schema>, {"type":
"null"}]}, the form already used for $ref properties. Scalars keep the
["T", "null"] form. fixSchemaArrayItems now also looks inside the anyOf
variants so arrays without items keep getting a default.

Signed-off-by: Simon Ferquel's Clanker <simonferquel-clanker@users.noreply.github.com>
2026-10-27 14:20:17 +00:00
..
2026-02-03 11:47:38 +01:00
2025-11-13 17:53:44 +01:00
2026-01-15 17:19:10 +01:00
2025-11-04 10:54:55 +01:00
2025-11-13 17:53:44 +01:00
2025-11-04 12:16:02 +01:00