-
Notifications
You must be signed in to change notification settings - Fork 157
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
Return useful information #278
Comments
I'm not sure it makes sense? With a function called |
Does it throw any error when no validation fields are added to the struct ? |
why would it throw an error? |
I think they want the macro to throw an error if you have a struct with |
A compile error would be fine but then you need to handle Validate with nested and check whether that other struct has some validation set up.. |
Hello,
It seems
validate()
only return()
which is not very helpful.Is it possible to return the validator fields count ?
It will then be possible to check if no validator was added to the struct and show an error for example in that case.
Thank you in advance for your answers.
The text was updated successfully, but these errors were encountered: