DisallowUnknownFields feature
Opened this issue · 0 comments
cirelli94 commented
It would be great to have a feature like the DisallowUnknownFields to set in the onionwriter.DecodeOnion
var foo Bar
decoder := json.NewDecoder(r.Body)
decoder.DisallowUnknownFields()
if err := decoder.Decode(&foo); err != nil {
return err
}