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: fix rest transport unit test and required query prams handling #951

Merged
merged 1 commit into from
Jul 12, 2021

Conversation

vam-google
Copy link
Contributor

No description provided.

@vam-google vam-google requested a review from a team as a code owner July 10, 2021 07:15
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jul 10, 2021
@@ -196,23 +198,17 @@ class {{ service.name }}RestTransport({{ service.name }}Transport):
if {{ method.input.ident }}.{{ field }} in request:
query_params['{{ field|camel_case }}'] = request.{{ field }}
{% else %}
if request.{{ field }}:
query_params['{{ field|camel_case }}'] = request.{{ field }}
query_params['{{ field|camel_case }}'] = request.{{ field }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is passing empty values no longer a concern? #868

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Kind of. I have hard feelings about it. First - this is possible only for required fields, which are not common. For the requried fields, they are required to be set, and if somebody set them to empty value, then, supposedly, they know what they are doing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants