fix(gemini): preserve 'pattern' in antigravity tool schema translation

Remove "pattern" from UNSUPPORTED_SCHEMA_CONSTRAINTS so glob/grep tool
schemas keep the required "pattern" property for the antigravity provider.

Fixes decolua/9router#1368

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
mustafabozkaya
2026-06-20 15:31:22 +07:00
committed by decolua
parent 86162eeb8f
commit f6c2f7cae3

View File

@@ -7,7 +7,7 @@ import { OPENAI_BLOCK } from "../schema/index.js";
export const UNSUPPORTED_SCHEMA_CONSTRAINTS = [
// Basic constraints (not supported by Gemini API)
"minLength", "maxLength", "exclusiveMinimum", "exclusiveMaximum",
"pattern", "minItems", "maxItems", "format",
"minItems", "maxItems", "format",
// Claude rejects these in VALIDATED mode
"default", "examples",
// JSON Schema meta keywords