Open goshoo opened 2 years ago
Hi, @goshoo you may use custom error handler for this case https://github.com/rambler-digital-solutions/actix-web-validator/issues/20#issuecomment-856078177
Hi @singulared,
thanks for the link!
@goshoo Can i close this issue?
@singulared,
sure, but I think that it'll be a good idea this possibility for custom error handler to be documented somewhere.
@goshoo Yep, I think it should be optional. But I don't understand what structure it should have for now.
Maybe it should be a unique list of fields which have errors (hash table) and every value for every field should be an array of error messages ( vector of Strings).
I am thinking about another actix-web errors. Ok, I will try implement something with fixed structure on this weekend.
Any updates on this?
Hi,
this is a feature request.
is it possible somehow users to be able to configure format for validation errors. Now the only format is plain text but I would like JSON format to be an option as well.