Is there a way to get specifics on what went wrong with the validation? #1303
Answered
by
deankarn
DanielCoder834
asked this question in
Q&A
-
For example, a struct like this:
If a user entered an invalid email, is there a way to see which email field is invalid? In addition to that, is it possible to see what specifically went wrong with the validation, like if one of the fields was nil or another issue? Thank you for any help anyone can provide on this question, it means a lot. :) |
Beta Was this translation helpful? Give feedback.
Answered by
deankarn
Aug 9, 2024
Replies: 1 comment 1 reply
-
Please see the documentation and examples folder. They will show you how to pull out the specifics of all errors that occurred during the validation including which field and validation failed for it. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
DanielCoder834
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please see the documentation and examples folder.
They will show you how to pull out the specifics of all errors that occurred during the validation including which field and validation failed for it.