mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-03 13:00:52 +08:00
fix(antigravity): remove exclusiveMaximum from JSON during key deletion
This commit is contained in:
@@ -536,6 +536,7 @@ func (e *AntigravityExecutor) buildRequest(ctx context.Context, auth *cliproxyau
|
|||||||
strJSON = util.DeleteKey(strJSON, "minLength")
|
strJSON = util.DeleteKey(strJSON, "minLength")
|
||||||
strJSON = util.DeleteKey(strJSON, "maxLength")
|
strJSON = util.DeleteKey(strJSON, "maxLength")
|
||||||
strJSON = util.DeleteKey(strJSON, "exclusiveMinimum")
|
strJSON = util.DeleteKey(strJSON, "exclusiveMinimum")
|
||||||
|
strJSON = util.DeleteKey(strJSON, "exclusiveMaximum")
|
||||||
|
|
||||||
paths = make([]string, 0)
|
paths = make([]string, 0)
|
||||||
util.Walk(gjson.Parse(strJSON), "", "anyOf", &paths)
|
util.Walk(gjson.Parse(strJSON), "", "anyOf", &paths)
|
||||||
|
|||||||
Reference in New Issue
Block a user