mwitkow / go-proto-validators

Generate message validators from .proto annotations.
Apache License 2.0
1.09k stars 164 forks source link

Suggestion: Make FieldError expose more information (field / error) rather then an error string #58

Open eldad87 opened 5 years ago

eldad87 commented 5 years ago

Hi, Its been a while now that I'm looking for a suitable solution, something that can validate my requests and return an informative response, something that I'll be able to expose to my gRPC client for farther use.

Suggestion: Make FieldError expose additional information (Field name / Validation error). This way, the users of this library would be able to something like this, which will expose additional information back as a gRPC response.