Accumulation of error messages from validation of multiple fields #2507
Closed
Description
Hello, is there any chance to validate multiple fields and have all error messages accumulated and returned in a single Vec, without having to manually write de Deserializer each time (i.e. deriving it):
#[derive(serde::DeserializeNel)]
pub struct LoginFormData {
email: String,
password: String,
}
{}
For something like this maybe we could return something around the lines of:
Json deserialize error: missing field *email* at line 3 column 1 and *password* at line 4 column 1.
Thanks a lot in advance! I'd be happy to contribute on this one if open to this approach!
Metadata
Assignees
Labels
No labels