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

Validator affects generation of Java GRPC client #59

Open
emman27 opened this issue Feb 22, 2019 · 0 comments
Open

Validator affects generation of Java GRPC client #59

emman27 opened this issue Feb 22, 2019 · 0 comments

Comments

@emman27
Copy link

emman27 commented Feb 22, 2019

Hi,

I'm using this project to generate a GRPC server (Go) as well as clients in multiple languages. Unfortunately, I can't seem to generate a Java client that compiles --- there's an validator.Validator that's being generated alongside my Java code.

Here's the command I'm using:

protoc \
		-I api/protobuf \
		-I /usr/local/include \
		-I ${GOPATH}/src \
		-I ${GOPATH}/src/github.com/gogo/protobuf/protobuf \
		-I ${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
		--go_out=plugins=grpc:pkg/my-project \
		--java_out=pkg/java/my-project/src/main/java \
		--doc_out=docs/ \
		--doc_opt=markdown,grpc.md \
		--govalidators_out=pkg/my-project \
		--grpc-gateway_out=logtostderr=true:pkg/my-project \
		api/protobuf/my-project.proto

And a snippet of my proto file

syntax = "proto3";

package myproject;

import "github.com/mwitkow/go-proto-validators/validator.proto";
import "google/api/annotations.proto";
import "google/protobuf/any.proto";

option java_package = "com.myproject";
option optimize_for = SPEED;
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