Open Alejka opened 8 years ago
Could you provide a little snippet with full example of issue please?
i think it is clear enough. if you validate a couple of fields - you need to receive a couple of errors, not a one cocatenated string
Hello guys! I forked this package cause owner disappeared. Hope, he will be back, but it would be easier to merge these changes back if he is back Link to my repo: create issue there and we'll discuss it.
I can't use Errors() method, because ValidateStruct() function returns error type (in function declaration), not Errors: https://github.com/asaskevich/govalidator/blob/master/validator.go#L534
func ValidateStruct(s interface{}) (bool, error) {
How I can range validation errors ? Now I can use only Error() function, but this function returns all validation errors as string with ";" separator: https://github.com/asaskevich/govalidator/blob/master/error.go#L11