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

OpenAPI v2 annotations #93

Closed
saeid-ir opened this issue Dec 3, 2020 · 3 comments · Fixed by #106
Closed

OpenAPI v2 annotations #93

saeid-ir opened this issue Dec 3, 2020 · 3 comments · Fixed by #106
Labels
enhancement New feature or request lang-grpc-gateway grpc-gateway rules specific resolved-next-release Code to resolve issue is pending release

Comments

@saeid-ir
Copy link

saeid-ir commented Dec 3, 2020

Hi,

As the example and repository files show, there is nothing mentioned about protoc-gen-openapiv2/options/annotations.proto exist in in grpc-gateway repository.
is there any example on how to use this annotation file for generation swagger definitations?

@aaliddell
Copy link
Member

I think you should be able to use @grpc_ecosystem_grpc_gateway//protoc-gen-openapiv2/options:options_proto as a dependency to the proto_library. Let me know if that works.

@aaliddell aaliddell added the more-info-needed Further information is requested label Dec 6, 2020
@saeid-ir
Copy link
Author

No, it doesn't work.

no such package '@grpc_ecosystem_grpc_gateway//protoc-gen-openapiv2/options': BUILD file not found in directory 'protoc-gen-openapiv2/options' of external repository @grpc_ecosystem_grpc_gateway. Add a BUILD file to a directory to mark it as a package.

I add it to deps section in proto_library

@aaliddell
Copy link
Member

Possibly fixed by #98, where grpc-gateway version is updated from 1.x.x to 2.x.x

@aaliddell aaliddell added enhancement New feature or request lang-grpc-gateway grpc-gateway rules specific resolved-next-release Code to resolve issue is pending release and removed more-info-needed Further information is requested labels Feb 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lang-grpc-gateway grpc-gateway rules specific resolved-next-release Code to resolve issue is pending release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants