fix(binding): prevent duplicate decoding and add validation in decodeToml (#4193)

This commit is contained in:
revevide 2025-03-20 23:35:49 +08:00 committed by GitHub
parent 4ccfa7c275
commit e737e3e267
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,5 +31,5 @@ func decodeToml(r io.Reader, obj any) error {
if err := decoder.Decode(obj); err != nil {
return err
}
return decoder.Decode(obj)
return validate(obj)
}