actix-web-validator icon indicating copy to clipboard operation
actix-web-validator copied to clipboard

Use custom message if exists

Open Vitaliy-Svinchyak opened this issue 3 years ago • 1 comments

Hello,

I am using custom error messages in my project. Sth like:

#[validate(length(min = 1, max = 1000, message = "Title should have length from 1 to 1000"))]

But I found that it is not used in response. So this is a fix

Vitaliy-Svinchyak avatar Jun 17 '21 13:06 Vitaliy-Svinchyak

Thanks! Could you add a test?

AndreyErmilov avatar Jun 17 '21 14:06 AndreyErmilov