Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Parse multiple json errors
Hello, I'm creating a web api with axum
. I use a defined schema to validate the json input but when a parsing error occurs, I don't really have a good error to return to user. I would like to return errors like in RFC 7807.
I've tried using serde_path_to_error
but it just returns the first error because of the principle of stopping searching when the first errors appears. I would like to return a list of errors not just the first one.
Is there any option to do that??
1 post - 1 participant
🏷️ Rust_feed