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

fix(gengapic): only gen REST client for RESTable services #1199

Merged
merged 1 commit into from
Dec 7, 2022

Conversation

noahdietz
Copy link
Collaborator

This is a fix, and introduces the possibility of a breaking change, in generation of clients when rest is a selected transport. If a proto service being generated doesn't have any RPCs with google.api.http annotations i.e. they are not "REST-able", then a REST client is not generated for the proto service.

I've added a sanity check but based on where the code is placed it is really hard to test without setting up the entire generator in code. I have tested this in local generation and with the known example added to test.sh.

@noahdietz noahdietz requested review from a team as code owners December 7, 2022 23:27
Copy link
Member

@codyoss codyoss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two small comments to check or else looks good

@noahdietz noahdietz merged commit 0f063f1 into googleapis:main Dec 7, 2022
@noahdietz noahdietz deleted the exclude-rest branch December 7, 2022 23:45
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.

2 participants