Feature Request : Get "missing" type text from Validation
- Dominant language
- Swift
- Stars
- 8
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
In the sample code in this issue:
https://github.com/groue/GRValidation/issues/1
It would be great to have "} catch let error as ValidationError {" as shown in the response to my original question.
In this block it would be great to get (localization not needed now) an array of all the "messages" that are in the ValidationError (error)
For instance: (using the code above)
if the user left the "firstName" and "lastName" field blank, I would love to call a method on the error (of type ValidationError) like:
getErrorMessages() as an array,
I could then loop over the array, localize the text if needed and display them to the user.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.