fix parameters_to_url_query to properly handle lists

This commit is contained in:
Roi Shacham
2024-01-11 15:37:46 +00:00
parent 69e72203ae
commit 92df62b7ac
2 changed files with 2 additions and 2 deletions

View File

@@ -577,7 +577,7 @@ class ApiClient:
if k in collection_formats:
collection_format = collection_formats[k]
if collection_format == 'multi':
new_params.extend((k, value) for value in v)
new_params.extend((k, str(value)) for value in v)
else:
if collection_format == 'ssv':
delimiter = ' '

View File

@@ -491,7 +491,7 @@ class ApiClient:
if k in collection_formats:
collection_format = collection_formats[k]
if collection_format == 'multi':
new_params.extend((k, value) for value in v)
new_params.extend((k, str(value)) for value in v)
else:
if collection_format == 'ssv':
delimiter = ' '