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
[bug] Google tool-schema sanitizer can emit array schemas without required items #5689
The Google tool-schema sanitizer/compiler can emit a required array schema without an items schema. Some Google/Gemini tool-schema consumers reject or mishandle such arrays. Expected: when a required array lacks items, materialize a safe item schema during sanitization without changing valid existing item schemas.
Reproduction
Supply a tool/function schema containing a required property with type: "array" and no items.
Compile/sanitize it through the Google tool-schema path.
Inspect the emitted schema.
On official v2.63.0, the required array can remain without items.
A local patch materializes the missing array item schema and keeps valid schemas unchanged.
Fixed on dev by bundle #5739 (squash-merged as a8d526f); it will ship in the next release. Closing manually because dev is not the default branch, so GitHub does not auto-close. If you still see this on a build that includes a8d526f, please reopen with the version and a redacted reproduction.
Activity
github-actions commentedon Sep 23, 2026
Issue reopened
The report now contains the information required by the automated check. Thanks for updating it.
fix(google): charge synthesized array items to the schema node budget (…
fix(google): give array tool parameters without items a string item s…
fix(google): charge synthesized array items to the schema node budget (…
fix(google): omit an array the node budget cannot complete instead of…
fix(google): give array tool parameters without items a string item s…
fix(google): charge synthesized array items to the schema node budget (…
fix(google): omit an array the node budget cannot complete instead of…
fix(providers): bundle L3 — MiMo, DeepSeek, Google, Command Code and …
lidge-jun commentedon Sep 24, 2026
Fixed on
devby bundle #5739 (squash-merged as a8d526f); it will ship in the next release. Closing manually becausedevis not the default branch, so GitHub does not auto-close. If you still see this on a build that includes a8d526f, please reopen with the version and a redacted reproduction.