Repository navigation
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Reply to a comment to ask cubic a question or push back. It learns from your replies.
View guided diff | Re-trigger cubic
|
Thanks for the fix and the thorough tests. We checked it against our current integration branch: it merges cleanly, the transform, Pi and OpenCode request-helper suites pass, and the new tests fail without the change, which is what we want. The A few changes before we merge:
Happy to help with any of these if you'd prefer. |
…and test fixtures
|
Addressed all 4 items in
|
There was a problem hiding this comment.
All reported issues were addressed across 2 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
|
Thanks — verified on a trial merge onto our current release: the transform |
|
Thank you for this fix and for working through the review. It shipped in 3.0.14 (https://github.com/cortexkit/antigravity-auth/releases/tag/v3.0.14), squashed into our release branch with you credited as co-author ( |
Fixes #44
Summary
toGeminiSchemaalready normalizesanyOf/oneOfnull unions into{ type, nullable: true }, but JSON Schema nullable type arrays (type: ["string", "null"]) reachedtypeof inputSchema.type === 'string'as an array and had theirtypedropped. Tools that declare nullable arguments via type arrays (such as OpenCode 2.x tools withtype: ["string", "null"]) then failed on Gemini models with HTTP 400.Changes
normalizeNullableTypeArrayinpackages/core/src/transform/gemini.tsaftermergeSchemaAllOfto normalize:["string", "null"],["null", "integer"], etc., case-insensitive and deduplicated) to{ type: "<type>", nullable: true }["string"]->type: "string",["null"]->type: "null")allOf-merged schemas["string", "number"]) and unknown type entries untouched so existing provider validation handles them without misclassifying schema errors.packages/core/src/transform/gemini.test.ts.Verification
bun test --isolate packages/core/src/transform/gemini.test.ts(166 pass, 0 fail)bun run --cwd packages/core typecheck(0 errors)bun x @biomejs/biome check packages/core/src/transform/gemini.ts packages/core/src/transform/gemini.test.tsnullarguments onantigravity-gemini-3.8-flashandantigravity-gemini-4-argon.