-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
How to change title and version in generated swagger json file #1269
Comments
https://github.com/grpc-ecosystem/grpc-gateway/blob/master/examples/internal/proto/examplepb/a_bit_of_everything.proto#L17-L35 shows how to customize this part of the generation. Would you be able to help us improve the documentation around this? I'd love for this to be more discoverable by users. |
The above link is mainly for go, what if we do it for java and publish it as maven dependency it will be useful for everyone going forward. |
I have no experience of the java ecosystem, if you think that would be useful than please go ahead, I'd be happy to add a link to your published package to our docs. |
Here is what I did to set swagger-ui base info: in .proto file:
|
Hello Everyone,
I wanted to know how to set title and version while converting proto files to swagger json files. I am able to generate json file with protoc-gen-swagger (grpc-ecosystem.grpc-gateway) but the title and version is coming as below:
I am generating swagger json file using spring boot app :
Can someone help me on how to pass title and version, as swagger hub is not accepting json with the above generated version.
The text was updated successfully, but these errors were encountered: