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

Skip unreferenced messages in definitions. #371

Merged
merged 2 commits into from
May 12, 2017
Merged

Conversation

lantame
Copy link
Contributor

@lantame lantame commented Apr 24, 2017

If all message fields are embedded in path + query args,
the message itself is not referenced, so swagger generates
warnings.

Here we track request messages referenced in methods, and do not include
unreferenced ones.

@lantame lantame force-pushed the master branch 2 times, most recently from 6c20d8b to 08627e5 Compare April 24, 2017 10:58
@tmc
Copy link
Collaborator

tmc commented Apr 24, 2017

@lantame thanks for your contribution. This looks like a good change. What do you think about adding a small test that verifies this behavior? Also, have you signed the CLA?

@lantame
Copy link
Contributor Author

lantame commented Apr 24, 2017

Yes, I signed the CLA 8 hours ago. But somehow this check does not pass :-(
Looks like I commited with wrong email. I'll change it.
Don't know why the check removed after commit update.

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.

@googlebot
Copy link

CLAs look good, thanks!

@lantame
Copy link
Contributor Author

lantame commented Apr 25, 2017

Added a test. @tmc take a look pls.

If all message fields are embedded in path + query args,
the message itself is not referenced, so swagger generates
warnings.

Here we track request messages referenced in methods, and do not include
unreferenced ones.
@tmc
Copy link
Collaborator

tmc commented May 12, 2017

@lantame thanks! can you comment again to try to kick the cla bot into action?

@lantame
Copy link
Contributor Author

lantame commented May 12, 2017

Hello CLA bot!

@tmc tmc merged commit b1e4aed into grpc-ecosystem:master May 12, 2017
tamalsaha added a commit to gomodules/grpc-gateway that referenced this pull request Jan 29, 2018
adasari pushed a commit to adasari/grpc-gateway that referenced this pull request Apr 9, 2020
* Skip unreferenced messages in definitions.

If all message fields are embedded in path + query args,
the message itself is not referenced, so swagger generates
warnings.

Here we track request messages referenced in methods, and do not include
unreferenced ones.

* Add a test.
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

Successfully merging this pull request may close these issues.

3 participants