diff --git a/huma.go b/huma.go index 99063935..37e30b81 100644 --- a/huma.go +++ b/huma.go @@ -1336,7 +1336,7 @@ func Register[I, O any](api API, op Operation, handler func(context.Context, *I) res.Errors = append(res.Errors, &ErrorDetail{ Location: "body", Message: err.Error(), - Value: body, + Value: string(body), }) parseErrCount++ } else {