-
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
Fix protoc-gen-swagger to output gRPC method summary and descriptions as Swagger's them #667
Fix protoc-gen-swagger to output gRPC method summary and descriptions as Swagger's them #667
Conversation
Codecov Report
@@ Coverage Diff @@
## master #667 +/- ##
=========================================
- Coverage 56.43% 56.34% -0.1%
=========================================
Files 30 30
Lines 3005 3010 +5
=========================================
Hits 1696 1696
- Misses 1145 1150 +5
Partials 164 164
Continue to review full report at Codecov.
|
@co3k, thanks so much for your pull request. Looking through, I'm a bit puzzled by what it should do. It looks like the changes to the golden |
I added these changes to pass build on Travis CI. In the other pull request, I've encountered build error that is caused by the upstream changes. https://travis-ci.org/grpc-ecosystem/grpc-gateway/builds/390065893
You're right. I've added the ce1532e commit to show it. |
@@ -189,6 +189,9 @@ service ABitOfEverythingService { | |||
} | |||
}; | |||
|
|||
// Create a new ABitOfEverything | |||
// | |||
// This API creates a new ABitOfEverything |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, I left that comment on the commit directly -- sorry. Can you make the indentation match the rest of the file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, sorry for the mistakes. I fixed it by 4b6f889
Hi! Can you please rebase this on top of master? There was recently a change to the swagger generator. You can run something like:
from the root of the repo to regenerate all examples. This will require swagger-codegen (and Java) installed. |
…ions as Swagger's them
4b6f889
to
dbe8f7d
Compare
@johanbrandhorst I rebased my changes and tests on Travis CI are passed. |
Hi, could you squash the commits as well please? Sorry I didn't specify this in the last message. |
dbe8f7d
to
9566623
Compare
@johanbrandhorst OK, I've just squashed them. |
Thanks, I will leave it for @achew22 to approve and merge, but I'm a little confused by the PR description. Looking at the code this change looks like it parses the method comment and adds it to "Summary" and "Description" in accordance with other such comment parsing, but the PR title, description and commit message is a little confusing. Could you reword it for clarity please? |
@johanbrandhorst another neat thing about the squash button on github is that you enter the description of the new squashed commit which makes it perfect for these situations. 2 commits squashed down into 1 and then the description hopefully clarified. @co3k Thanks so much for your contribution! This will help in producing great documentation for APIs. |
No description provided.