Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use custom message if exists #26

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Vitaliy-Svinchyak
Copy link

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

@AndreyErmilov
Copy link
Collaborator

Thanks! Could you add a test?

Roms1383 added a commit to Roms1383/actix-web-validator that referenced this pull request Aug 31, 2021
fix from Vitaliy-Svinchyak (e33) in PR rambler-digital-solutions#26
@AndreyErmilov AndreyErmilov mentioned this pull request Oct 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants