Skip to content

Commit

Permalink
fix: set DisallowUnknownFields false
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkgos committed Jul 11, 2024
1 parent bebc5ad commit f02b4cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func New() *Encoding {
mimeMap: map[string]codec.Marshaler{
MIMEPOSTForm: form.New("json"),
MIMEMultipartPOSTForm: &form.MultipartCodec{Codec: form.New("json")},
MIMEJSON: &json.Codec{UseNumber: true, DisallowUnknownFields: true},
MIMEJSON: &json.Codec{UseNumber: true, DisallowUnknownFields: false},
},
mimeQuery: &form.QueryCodec{Codec: form.New("json")},
mimeUri: &form.UriCodec{Codec: form.New("json")},
Expand Down

0 comments on commit f02b4cb

Please sign in to comment.