We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
protoc \ --go_out=plugins=grpc:./lib/protos/ \ --proto_path=/Users/frontmage/go/src \ --proto_path=/Users/frontmage/go/src/github.com/google/protobuf/src \ --proto_path=./protos/common/ \ --proto_path=./protos/server/ \ --govalidators_out=./lib/protos \ ./protos/common/*.proto \ ./protos/server/*.proto
I'm using protoc to generate validators for my proto file, but the validator function is just return nil.
protoc
return nil
message LoginReq { string login_id = 1 [(validator.field) = {msg_exists : true}]; }
func (this *LoginReq) Validate() error { return nil }
The protoc command shows no errors, so how to properly generate validators?
The text was updated successfully, but these errors were encountered:
It seems that only pointer type will be checked with msg_exists, closing it.
msg_exists
Sorry, something went wrong.
No branches or pull requests
I'm using
protoc
to generate validators for my proto file, but the validator function is justreturn nil
.The
protoc
command shows no errors, so how to properly generate validators?The text was updated successfully, but these errors were encountered: