fix(antigravity): strip 'deprecated' from tool schemas before Gemini

Gemini rejects the non-standard 'deprecated' keyword in nested tool
schemas with INVALID_ARGUMENT (400). Add it to UNSUPPORTED_SCHEMA_CONSTRAINTS
alongside 'optional' so it gets stripped during translation.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Yudhistira-Official
2026-06-29 15:28:02 +07:00
committed by decolua
co-authored by Cursor
parent 95bfc64f06
commit 319caa2d7b
+1 -1
View File
@@ -21,7 +21,7 @@ export const UNSUPPORTED_SCHEMA_CONSTRAINTS = [
// Dependency keywords (not supported) // Dependency keywords (not supported)
"dependencies", "dependentSchemas", "dependentRequired", "dependencies", "dependentSchemas", "dependentRequired",
// Other unsupported keywords // Other unsupported keywords
"title", "optional", "if", "then", "else", "contentMediaType", "contentEncoding", "title", "optional", "deprecated", "if", "then", "else", "contentMediaType", "contentEncoding",
// UI/Styling properties (from Cursor tools - NOT JSON Schema standard) // UI/Styling properties (from Cursor tools - NOT JSON Schema standard)
"cornerRadius", "fillColor", "fontFamily", "fontSize", "fontWeight", "cornerRadius", "fillColor", "fontFamily", "fontSize", "fontWeight",
"gap", "padding", "strokeColor", "strokeThickness", "textColor" "gap", "padding", "strokeColor", "strokeThickness", "textColor"