From 39b6b3b289fdf9cd0d2d20e4da296ab6f16b8b75 Mon Sep 17 00:00:00 2001 From: Luis Pater Date: Tue, 9 Dec 2025 17:32:17 +0800 Subject: [PATCH] Fixed: #463 fix(antigravity): remove `$ref` and `$defs` from JSON during key deletion --- internal/runtime/executor/antigravity_executor.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/runtime/executor/antigravity_executor.go b/internal/runtime/executor/antigravity_executor.go index 730a32fb..b74f43e1 100644 --- a/internal/runtime/executor/antigravity_executor.go +++ b/internal/runtime/executor/antigravity_executor.go @@ -537,6 +537,8 @@ func (e *AntigravityExecutor) buildRequest(ctx context.Context, auth *cliproxyau strJSON = util.DeleteKey(strJSON, "maxLength") strJSON = util.DeleteKey(strJSON, "exclusiveMinimum") strJSON = util.DeleteKey(strJSON, "exclusiveMaximum") + strJSON = util.DeleteKey(strJSON, "$ref") + strJSON = util.DeleteKey(strJSON, "$defs") paths = make([]string, 0) util.Walk(gjson.Parse(strJSON), "", "anyOf", &paths)