Add grpc_validator
This commit is contained in:
@@ -36,12 +36,17 @@ do
|
||||
if [ $? -ne 0 ];then
|
||||
echo "missing plugin: $plugin" && exit
|
||||
fi
|
||||
vplugin=protoc-gen-govalidators
|
||||
which $vplugin > /dev/null
|
||||
if [ $? -ne 0 ];then
|
||||
echo "missing plugin: $vplugin" && exit
|
||||
fi
|
||||
out="$gen_dir/go"
|
||||
if [ ! -d $out ]; then
|
||||
mkdir -p $out
|
||||
fi
|
||||
echo "Generating Go code"
|
||||
$exec --go_out=plugins=grpc:$out $pb_files $async_tag
|
||||
$exec --go_out=plugins=grpc:$out --govalidators_out=$out $pb_files $async_tag
|
||||
fi
|
||||
if [ $aug == "gohttp" ]; then
|
||||
plugin=protoc-gen-grpc-gateway
|
||||
|
||||
Reference in New Issue
Block a user