pub fn body_error(error: Error) -> ErrorExpand description
Convert a JSON body deserialization failure into a field-level 400.
serde_json reports the offending field for the common cases; those become
errors.<field> entries, and everything else is reported at the body level
under the empty key — the same convention ASP.NET Core uses for a body
model that cannot be bound at all.