-
Notifications
You must be signed in to change notification settings - Fork 254
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
Merge branch 'feat/method_summary' #300
Merge branch 'feat/method_summary' #300
Conversation
oh, if I want to pass the unit tests, I have to modify the groundtruth by adding summary for methods. |
@timburks Should I modify the groundtruth? |
This is just my opinion: Also: by manipulating the comment you may loose data in an unexpected way.
Will become:
I also really appreciate the fact, that I can focus my attention on the proro files, their naming and structure and let gnostic generate the rest, without having to consider what it does, because it just converts between 2 formats, without changing things more than absolutely necessary. @timburks what are your thoughts on this? |
I see, my idea is too tricky. If you finally decide to discard it, close this PR. Thx |
Is there anything like jsdoc tags? I mean could we annotate summary like service TestService {
// @summary Short summary
//
// Long description
// Lorem...
rpc Get (MessageIn) returns (MessageOut) {
...
} Or could we add an option |
I'm not sure, this is within scope of gnostic. My approach in these situations is to let gnostic do what it's good at and then have a step more in my personal build process, where I read the OpenAPI file, change what I need and then save the file with the changes. |
Great idea. I will close it and keep this little modify in my special branch for convenience. |
Use the first line of operation comments as summary, for better format in document.