.generator/src/generator/templates/api.j2 in datadog_api_client-2.27.1 vs .generator/src/generator/templates/api.j2 in datadog_api_client-2.28.1
- old
+ new
@@ -205,9 +205,13 @@
:body => post_body,
:auth_names => auth_names,
:return_type => return_type,
:api_version => "{{ version|upper }}"
)
+ {%- set query_multi_params = operation|parameters | map(attribute=1) | selectattr("in", "equalto", "query")| map("collection_format")| select("eq", "multi") | first-%}
+ {%- if query_multi_params %}
+ new_options[:query_string_normalizer] = HTTParty::Request::NON_RAILS_QUERY_STRING_NORMALIZER
+ {%- endif %}
data, status_code, headers = @api_client.call_api(Net::HTTP::{{ httpMethod|camel_case }}, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: {{ classname }}#{{ operation.operationId|snake_case }}\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end