Skip to content

Commit

Permalink
fix: stabilize order of query_params (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
busunkim96 authored Jan 21, 2021
1 parent 72c103b commit 2835ddb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,11 @@ class {{ service.name }}RestTransport({{ service.name }}Transport):
# TODO(yon-mg): handle nested fields corerctly rather than using only top level fields
# not required for GCE
query_params = {
{% filter sort_lines -%}
{%- for field in method.query_params %}
'{{ field|camel_case }}': request.{{ field }},
{%- endfor %}
{% endfilter -%}
}
# TODO(yon-mg): further discussion needed whether 'python truthiness' is appropriate here
# discards default values
Expand Down

0 comments on commit 2835ddb

Please sign in to comment.