-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Handling of import public "file.proto" #139
Comments
It might be a bug because I didn't consider Could you give me a more concrete example, what you expected and what you got? |
I had like 3 proto files used for specific things. Then elsewhere in another proto file I would |
I guess a scenario something like the followings.
But as far as I understand, |
a.proto:
b.proto:
root.proto:
When I generate the root.pb.go I get all types from a and b. The gateway and swagger ones are empty. |
You won't see message definition unless it is actually used in services. |
Sure, thanks! |
When I use
import public "file.proto"
the generated .pb.go file contains my API + the public import ones. However, the pb.gw.go file does not.Is that expected, am I missing something?
The text was updated successfully, but these errors were encountered: