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

Generation of one swagger file out of multiple protos? #99

Closed
naibaf0 opened this issue Jan 29, 2016 · 4 comments
Closed

Generation of one swagger file out of multiple protos? #99

naibaf0 opened this issue Jan 29, 2016 · 4 comments

Comments

@naibaf0
Copy link
Contributor

naibaf0 commented Jan 29, 2016

Hi,

First I want to thank you for creating this extremely useful tool!

Now this is probably more on the level of protoc than grpc-gateway but only concerns me regarding a RESTful API.

It is only possible to generate one *.swagger.json file out of one .proto file and not out of multiple files? (same for *.pb.gw.go) I am currently planning new software that should have a very modular structure and will most likely end up with a lot of .proto file. That makes the swagger generator more or less useless for me, doesn't it?

Thank you and kind regards,

Fabian

@naibaf0 naibaf0 closed this as completed Jul 4, 2016
@zxy198717
Copy link
Contributor

@naibaf0 Did you solved this issue?

@naibaf0
Copy link
Contributor Author

naibaf0 commented Oct 23, 2017

Hi @zxy198717
If I remember correctly, no I didn't. We just settled on merging the proto files for swagger generation and since the specific project ended up on the backburner anyways I didn't look into it more.

@rio
Copy link

rio commented Nov 15, 2017

We're running into the same issue now. Creating a client for each service on the browser side is something our frontenders would like to avoid. But seems to us that for now that's how it is. Until we're a bit more sure about our pipeline and api setup we're keeping the multiple clients.

@achew22
Copy link
Collaborator

achew22 commented Nov 16, 2017

Generating all those files as a single output is, IMO antithetical to the way protoc works. If someone wanted to write a small script in go that merged the outputs of multiple swagger definitions (we have the structs already defined so it wouldn't be that hard), it would be a welcome contribution to the project.

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

4 participants