Skip to content

Commit

Permalink
avoid printing value in contentEncoding error
Browse files Browse the repository at this point in the history
  • Loading branch information
santhosh-tekuri committed Nov 18, 2022
1 parent fad0ea9 commit d30b0a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ func (s *Schema) validate(scope []schemaRef, vscope int, spath string, v interfa
if s.decoder != nil {
b, err := s.decoder(v)
if err != nil {
errors = append(errors, validationError("contentEncoding", "%s is not %s encoded", quote(v), s.ContentEncoding))
errors = append(errors, validationError("contentEncoding", "value is not %s encoded", s.ContentEncoding))
} else {
content, decoded = b, true
}
Expand Down

0 comments on commit d30b0a6

Please sign in to comment.