mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-03 00:43:46 +00:00
[python-nextgen] support dict query params (#14727)
* [python-nextgen] convert dictionary query params to string * [python-nextgen] regenerated samples * [python-nextgen] added some test cases for parameters_to_url_query * [python-nextgen] use json.dumps instead of str(v) * [python-nextgen] update api_client tests
This commit is contained in:
@@ -526,6 +526,8 @@ class ApiClient(object):
|
||||
v = str(v)
|
||||
if isinstance(v, bool):
|
||||
v = str(v).lower()
|
||||
if isinstance(v, dict):
|
||||
v = json.dumps(v)
|
||||
|
||||
if k in collection_formats:
|
||||
collection_format = collection_formats[k]
|
||||
|
||||
Reference in New Issue
Block a user