fix(antigravity): strip optional from tool schemas before Gemini

Closes #1537, #1841

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Khanh LeandCursor authored and decolua committed 2026-06-17 09:46:41 +07:00
1 parent 411a589781
commit db9ec3af61
2 files changed
+31 -1

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ export const UNSUPPORTED_SCHEMA_CONSTRAINTS = [
// Dependency keywords (not supported)
"dependencies", "dependentSchemas", "dependentRequired",
// Other unsupported keywords
"title", "if", "then", "else", "contentMediaType", "contentEncoding",
"title", "optional", "if", "then", "else", "contentMediaType", "contentEncoding",
// UI/Styling properties (from Cursor tools - NOT JSON Schema standard)
"cornerRadius", "fillColor", "fontFamily", "fontSize", "fontWeight",
"gap", "padding", "strokeColor", "strokeThickness", "textColor"