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

Merge swagger definitions generated by swaggo/swag init and protoc --swagger_out command #1651

Closed
duclm2609 opened this issue Sep 8, 2020 · 1 comment

Comments

@duclm2609
Copy link

Hi all,
Currently my service served both RESTful API and gRPC (via grpc-gateway) under a web server. For native REST endpoint, I generate swagger by command swag init. For REST endpoint proxied for gRPC function, I generate it by using protoc command with option --swagger_out. How do I merge theses 2 output file into single swagger definition file automatically? Thank you.

@achew22
Copy link
Collaborator

achew22 commented Sep 8, 2020

Unfortunately we don't have any utilities for modifying, merging or otherwise editing swagger definitions. All we do is generate the swagger associated with your protos. There are a large number of external projects that can be used to merge your swagger definitions. I would recommend trying then out.

If you do have any issues around the generated swagger definitions, please come back and I would love to help. You can either reopen this issue or make a new one. I hope you can understand that since this is a volunteer effort and we try to respond to all bugs, sometimes we can't help other than to point you in a general direction. Thanks so much!

@achew22 achew22 closed this as completed Sep 8, 2020
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

2 participants