mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-14 03:30:26 +00:00
443410018c
OpenAI strictly validates JSON Schema and rejects 'required': null (expects
an array). When MCP tools had no required fields, the nil []string serialized
as null. Initialize required as []string{} and sanitize nested schemas
recursively to remove null/invalid required fields from MCP server responses.