uber / prototool

Your Swiss Army Knife for Protocol Buffers
MIT License
5.05k stars 345 forks source link

Include support for go-proto-validators #506

Open hemantkashniyal opened 4 years ago

hemantkashniyal commented 4 years ago

Include support for Protobuf validation plugin https://github.com/mwitkow/go-proto-validators

It seems like Prototool's Yaml file does not have any option to specify govalidators_out flag in command.

e.g. go-proto-validators compile command protoc \ --proto_path=${GOPATH}/src \ --proto_path=${GOPATH}/src/github.com/google/protobuf/src \ --proto_path=. \ --go_out=. \ --govalidators_out=. \ *.proto

It would be helpful if this plugin's support will be added to prototool