Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could error message FieldName be json tag? #102

Open
GerryLon opened this issue Dec 24, 2020 · 0 comments
Open

could error message FieldName be json tag? #102

GerryLon opened this issue Dec 24, 2020 · 0 comments

Comments

@GerryLon
Copy link

GerryLon commented Dec 24, 2020

return github_com_mwitkow_go_proto_validators.FieldError("ProjectName", fmt.Errorf(`value '%v' must not be an empty string`, this.ProjectName))
ProjectName          string   `protobuf:"bytes,3,opt,name=project_name,proto3" json:"project_name,omitempty"`

if error message's FieldName set toproject_name(from json tag) will better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant