chore: always ignore unknown fields for gateway requests (#5072)

Signed-off-by: kevin <wanjunfeng@gmail.com>
This commit is contained in:
Kevin Wan
2025-08-09 13:07:17 +08:00
committed by GitHub
parent 00e67b9d20
commit 2583673c8b
4 changed files with 43 additions and 57 deletions

View File

@@ -10,10 +10,6 @@ type (
GatewayConf struct {
rest.RestConf
Upstreams []Upstream
// IgnoreUnknownFields specifies whether to ignore unknown fields during proto unmarshaling.
// When set to true, extra query parameters or JSON fields that don't exist in the gRPC message
// will be ignored instead of causing an error.
IgnoreUnknownFields bool `json:",default=false"`
}
// HttpClientConf is the configuration for an HTTP client.