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

protoc-gen-swagger: support multiple files #1104

Closed
ghost opened this issue Dec 27, 2019 · 2 comments
Closed

protoc-gen-swagger: support multiple files #1104

ghost opened this issue Dec 27, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 27, 2019

I have multiple services that I want to compose under single server and I want to have single swagger definition instead of each individual service having its own. Is there a way to generate single swagger schema from multiple services?

@johanbrandhorst
Copy link
Collaborator

Hi! We currently don't support this with protoc-gen-swagger but I imagine you could do it with a tool like jq. This has been requested before as a feature, so if you're interested in implementing it we'd be happy to review it!

@johanbrandhorst johanbrandhorst changed the title Swagger merge protoc-gen-swagger: support multiple files Dec 27, 2019
@ghost
Copy link
Author

ghost commented Dec 27, 2019

ok, thanks for the info. in the end, i think i will use separate schemas...something like this http://swagger-net-test-multiapiversions.azurewebsites.net/swagger/ui/index

@ghost ghost closed this as completed Dec 27, 2019
This issue was closed.
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