This repository was archived by the owner on Mar 26, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
ads-templates/%namespace/%name/%version/%sub/services/%service/transports
templates/%namespace/%name_%version/%sub/services/%service/transports Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -341,6 +341,10 @@ class {{service.name}}RestTransport({{service.name}}Transport):
341341 query_params.update(self._get_unset_required_fields(query_params))
342342 {% endif %} {# required fields #}
343343
344+ {% if opts .rest_numeric_enums %}
345+ query_params["$alt"] = "json;enum-encoding=int"
346+ {% endif %}
347+
344348 # Send the request
345349 headers = dict(metadata)
346350 headers['Content-Type'] = 'application/json'
Original file line number Diff line number Diff line change @@ -349,6 +349,10 @@ class {{service.name}}RestTransport({{service.name}}Transport):
349349 query_params.update(self._get_unset_required_fields(query_params))
350350 {% endif %} {# required fields #}
351351
352+ {% if opts .rest_numeric_enums %}
353+ query_params["$alt"] = "json;enum-encoding=int"
354+ {% endif %}
355+
352356 # Send the request
353357 headers = dict(metadata)
354358 headers['Content-Type'] = 'application/json'
You can’t perform that action at this time.
0 commit comments