Open
Description
Would it be possible to specify a list of unique integer ids for the type of validation that failed?
This would atleast allow the caller to write code to uniquely handled specific conditions
For instance
err := message.Validate() verr := err.(*validator.Error) if verr.Code == 5 { fmt.Printf("this is a fatal error") } else { fmt.Printf("this is a temporary error") }
Metadata
Metadata
Assignees
Labels
No labels