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

Is it possible to register custom validation function directly returning errors? #1278

Open
2 tasks done
WoWsj opened this issue Jun 12, 2024 · 1 comment
Open
2 tasks done

Comments

@WoWsj
Copy link

WoWsj commented Jun 12, 2024

  • I have looked at the documentation here first?
  • I have looked at the examples provided that may showcase my question here?

Package version eg. v9, v10:

v10

Issue, Question or Enhancement:

Hello folks,

I'd like to validate requests in HTTP server. I want to tell clients why you failed the request.

In some cases, there are several conditions to validate. However, current RegisterValidation method for *Validate accept function returning bool value, It means that it cannot represent why validation failed, only tell whether it succeeds or not.

So,

Q. Is there any way to return errors directly?

@noornee
Copy link

noornee commented Jun 15, 2024

need this fr.
turns out it isnt going to be implemented till v11 #669

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

No branches or pull requests

2 participants