-
Notifications
You must be signed in to change notification settings - Fork 139
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
Swagger doesn't work with multiple proto files #378
Comments
@b00f We can use trascoding standard of google API design guide. In grpc gateway openapiv2 generators have opt allow_merge for merge swaggers. protoc --proto_path=proto --openapiv2_out=allow_merge=true:api --openapiv2_opt use_go_templates=true proto/*.proto |
@Ja7ad |
This required to update all proto to support transcoding option for methods. |
@b00f please assign to me dudu :) |
@Ja7ad Did you find any solution for this issue? |
I use grpc gateway production ready for transcoding, support merge swagger and work it. I do refactoring to fix this issue. |
Description
After splitting proto files, swagger doesn't work and user should enter proto files manually to check the APIs.
How To Reproduce
Compile the latest code and check swagger.
What Happened
This error shows:
Failed to load API definition.
Workaround
Changing proto file in Swagger and then click "Explore".
The text was updated successfully, but these errors were encountered: