fix(antigravity): remove `$ref` and `$defs` from JSON during key deletion
This commit is contained in:
Luis Pater
2025-12-09 17:32:17 +08:00
parent c600519fa4
commit 39b6b3b289

View File

@@ -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)