Skip to content

Commit 3a97e7b

Browse files
committed
update samples
1 parent c19be16 commit 3a97e7b

File tree

2 files changed

+2
-2
lines changed
  • samples
    • client/echo_api/python-pydantic-v1/openapi_client
    • openapi3/client/petstore/python-pydantic-v1/petstore_api

2 files changed

+2
-2
lines changed

samples/client/echo_api/python-pydantic-v1/openapi_client/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ def parameters_to_tuples(self, params, collection_formats):
509509
if k in collection_formats:
510510
collection_format = collection_formats[k]
511511
if collection_format == 'multi':
512-
new_params.extend((k, quote(value)) for value in v)
512+
new_params.extend((k, value) for value in v)
513513
else:
514514
if collection_format == 'ssv':
515515
delimiter = ' '

samples/openapi3/client/petstore/python-pydantic-v1/petstore_api/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def parameters_to_url_query(self, params, collection_formats):
545545
if k in collection_formats:
546546
collection_format = collection_formats[k]
547547
if collection_format == 'multi':
548-
new_params.extend((k, str(value)) for value in v)
548+
new_params.extend((k, quote(str(value))) for value in v)
549549
else:
550550
if collection_format == 'ssv':
551551
delimiter = ' '

0 commit comments

Comments
 (0)