mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-06 23:32:12 +03:00
The Gemini/Antigravity schema sanitizer strips JSON-Schema constraint keywords Gemini rejects (pattern, minLength, ...) at every nesting level, but it also deleted any tool property literally NAMED one of those keywords. glob/grep tools declare a property called `pattern`, so on ag/* backends that argument (and its `required` entry) was silently dropped, breaking the tools. Keyword stripping is now position-aware: constraint keywords are only removed at the schema-node level, never against the user-defined names inside a `properties` map. A genuine string-level `pattern` constraint is still stripped. Reported-by: youthanh (https://github.com/decolua/9router/issues/1368) Co-authored-by: youthanh <74104625+youthanh@users.noreply.github.com>