Fix parameters_to_url_query doesn't properly convert lists to string (#17592)

* fix parameters_to_url_query to properly handle lists

* fix query parameters bug in sample clients

* add tests for url query list value

* build project

* tests fix

* Revert "build project"

This reverts commit a486a6de75.
This commit is contained in:
Roi Shacham
2024-01-13 05:36:01 +02:00
committed by GitHub
parent b01b182af6
commit 406bc28a3d
13 changed files with 29 additions and 10 deletions

View File

@@ -539,7 +539,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 = ' '