Skip to content

Commit

Permalink
fix: ignore unknown ingress fields (#2120)
Browse files Browse the repository at this point in the history
Fixes #2117 #2119
  • Loading branch information
safeer authored Jul 19, 2024
1 parent a2e7a79 commit d6d2b68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go-runtime/encoding/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ func decodeStruct(d *json.Decoder, v reflect.Value) error {
return strcase.ToLowerCamel(s) == key
})
if !field.IsValid() {
return fmt.Errorf("no field corresponding to key %s", key)
// Issue #2117 #2119: ignore unknown fields
continue
}
fieldTypeStr := field.Type().String()
switch {
Expand Down

0 comments on commit d6d2b68

Please sign in to comment.