Repository: openapi-generators/openapi-python-client (language: python)

Issue:
async request with verify_ssl=False does not work
**Describe the bug**
The async httpx request methods do not expect the keyword argument `verify`. It shall be passed to the client, not the request method.

```
Traceback (most recent call last):
  File "test.py", line 47, in <module>
    loop.run_until_complete(main())
  File "/usr/lib64/python3.6/asyncio/base_events.py", line 484, in run_until_complete
    return future.result()
  File "test.py", line 21, in main
    resp = await post_auth_login.asyncio(json_body=body, client=client)
  File "/dev/shm/env/lib64/python3.6/site-packages/construct_api_client/api/auth/post_auth_login.py", line 106, in asyncio
    json_body=json_body,
  File "/dev/shm/env/lib64/python3.6/site-packages/construct_api_client/api/auth/post_auth_login.py", line 91, in asyncio_detailed
    response = await _client.post(**kwargs)
TypeError: post() got an unexpected keyword argument 'verify'
```

**To Reproduce**
Call any asyncio() method with  the client option `verify_ssl=False`. 

**Expected behavior**
The call should pass without a TypeError..

**Desktop (please complete the following information):**
 - OS: CentOS 7.6
 - Python Version: 3.6.8
 - openapi-python-client version: 0.10.5



Discussion / hints:
Thanks for reporting! I'm going to do a sweep of PRs and bugs this weekend so I'll try and get this one in too.
looking at https://www.python-httpx.org/advanced/#ssl-configuration-on-client-instances 

I found the fix for this in my case was to remove `"verify": client.verify_ssl` from the `_get_kwargs` function and pass it directly to the client setup instead eg...
```python
    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
        response = await _client.get(**kwargs)
```

as well for the case of `synchronous` clients 
```python
response = httpx.get(verify=client.verify_ssl, **kwargs)
```

Fix patch:
diff --git a/openapi_python_client/templates/endpoint_module.py.jinja b/openapi_python_client/templates/endpoint_module.py.jinja
index 3339aa003..c8bb190ae 100644
--- a/openapi_python_client/templates/endpoint_module.py.jinja
+++ b/openapi_python_client/templates/endpoint_module.py.jinja
@@ -52,7 +52,6 @@ def _get_kwargs(
         {% if endpoint.query_parameters %}
         "params": params,
         {% endif %}
-        "verify": client.verify_ssl,
     }
 
 
@@ -93,6 +92,7 @@ def sync_detailed(
     )
 
     response = httpx.{{ endpoint.method }}(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -116,7 +116,7 @@ async def asyncio_detailed(
         {{ kwargs(endpoint) }}
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.{{ endpoint.method }}(
             **kwargs
         )


Test patch:
diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/default/get_common_parameters.py b/end_to_end_tests/golden-record/my_test_api_client/api/default/get_common_parameters.py
index 8752954c9..f7df7582f 100644
--- a/end_to_end_tests/golden-record/my_test_api_client/api/default/get_common_parameters.py
+++ b/end_to_end_tests/golden-record/my_test_api_client/api/default/get_common_parameters.py
@@ -27,7 +27,6 @@ def _get_kwargs(
         "cookies": cookies,
         "timeout": client.get_timeout(),
         "params": params,
-        "verify": client.verify_ssl,
     }
 
 
@@ -51,6 +50,7 @@ def sync_detailed(
     )
 
     response = httpx.get(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -67,7 +67,7 @@ async def asyncio_detailed(
         common=common,
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.get(**kwargs)
 
     return _build_response(response=response)
diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/default/post_common_parameters.py b/end_to_end_tests/golden-record/my_test_api_client/api/default/post_common_parameters.py
index b64273249..9f9981bc5 100644
--- a/end_to_end_tests/golden-record/my_test_api_client/api/default/post_common_parameters.py
+++ b/end_to_end_tests/golden-record/my_test_api_client/api/default/post_common_parameters.py
@@ -27,7 +27,6 @@ def _get_kwargs(
         "cookies": cookies,
         "timeout": client.get_timeout(),
         "params": params,
-        "verify": client.verify_ssl,
     }
 
 
@@ -51,6 +50,7 @@ def sync_detailed(
     )
 
     response = httpx.post(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -67,7 +67,7 @@ async def asyncio_detailed(
         common=common,
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.post(**kwargs)
 
     return _build_response(response=response)
diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/location/get_location_query_optionality.py b/end_to_end_tests/golden-record/my_test_api_client/api/location/get_location_query_optionality.py
index 9503c2813..89ecdac23 100644
--- a/end_to_end_tests/golden-record/my_test_api_client/api/location/get_location_query_optionality.py
+++ b/end_to_end_tests/golden-record/my_test_api_client/api/location/get_location_query_optionality.py
@@ -48,7 +48,6 @@ def _get_kwargs(
         "cookies": cookies,
         "timeout": client.get_timeout(),
         "params": params,
-        "verify": client.verify_ssl,
     }
 
 
@@ -78,6 +77,7 @@ def sync_detailed(
     )
 
     response = httpx.get(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -100,7 +100,7 @@ async def asyncio_detailed(
         not_null_not_required=not_null_not_required,
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.get(**kwargs)
 
     return _build_response(response=response)
diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/parameters/delete_common_parameters_overriding_param.py b/end_to_end_tests/golden-record/my_test_api_client/api/parameters/delete_common_parameters_overriding_param.py
index 724459e60..a415417e5 100644
--- a/end_to_end_tests/golden-record/my_test_api_client/api/parameters/delete_common_parameters_overriding_param.py
+++ b/end_to_end_tests/golden-record/my_test_api_client/api/parameters/delete_common_parameters_overriding_param.py
@@ -28,7 +28,6 @@ def _get_kwargs(
         "cookies": cookies,
         "timeout": client.get_timeout(),
         "params": params,
-        "verify": client.verify_ssl,
     }
 
 
@@ -54,6 +53,7 @@ def sync_detailed(
     )
 
     response = httpx.delete(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -72,7 +72,7 @@ async def asyncio_detailed(
         param_query=param_query,
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.delete(**kwargs)
 
     return _build_response(response=response)
diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/parameters/get_common_parameters_overriding_param.py b/end_to_end_tests/golden-record/my_test_api_client/api/parameters/get_common_parameters_overriding_param.py
index 127a802ba..78eb855da 100644
--- a/end_to_end_tests/golden-record/my_test_api_client/api/parameters/get_common_parameters_overriding_param.py
+++ b/end_to_end_tests/golden-record/my_test_api_client/api/parameters/get_common_parameters_overriding_param.py
@@ -28,7 +28,6 @@ def _get_kwargs(
         "cookies": cookies,
         "timeout": client.get_timeout(),
         "params": params,
-        "verify": client.verify_ssl,
     }
 
 
@@ -54,6 +53,7 @@ def sync_detailed(
     )
 
     response = httpx.get(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -72,7 +72,7 @@ async def asyncio_detailed(
         param_query=param_query,
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.get(**kwargs)
 
     return _build_response(response=response)
diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/parameters/get_same_name_multiple_locations_param.py b/end_to_end_tests/golden-record/my_test_api_client/api/parameters/get_same_name_multiple_locations_param.py
index 6008f66bd..067032a7f 100644
--- a/end_to_end_tests/golden-record/my_test_api_client/api/parameters/get_same_name_multiple_locations_param.py
+++ b/end_to_end_tests/golden-record/my_test_api_client/api/parameters/get_same_name_multiple_locations_param.py
@@ -36,7 +36,6 @@ def _get_kwargs(
         "cookies": cookies,
         "timeout": client.get_timeout(),
         "params": params,
-        "verify": client.verify_ssl,
     }
 
 
@@ -66,6 +65,7 @@ def sync_detailed(
     )
 
     response = httpx.get(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -88,7 +88,7 @@ async def asyncio_detailed(
         param_cookie=param_cookie,
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.get(**kwargs)
 
     return _build_response(response=response)
diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/parameters/multiple_path_parameters.py b/end_to_end_tests/golden-record/my_test_api_client/api/parameters/multiple_path_parameters.py
index ef0656b26..db68369c3 100644
--- a/end_to_end_tests/golden-record/my_test_api_client/api/parameters/multiple_path_parameters.py
+++ b/end_to_end_tests/golden-record/my_test_api_client/api/parameters/multiple_path_parameters.py
@@ -26,7 +26,6 @@ def _get_kwargs(
         "headers": headers,
         "cookies": cookies,
         "timeout": client.get_timeout(),
-        "verify": client.verify_ssl,
     }
 
 
@@ -56,6 +55,7 @@ def sync_detailed(
     )
 
     response = httpx.get(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -78,7 +78,7 @@ async def asyncio_detailed(
         client=client,
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.get(**kwargs)
 
     return _build_response(response=response)
diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tag1/get_tag_with_number.py b/end_to_end_tests/golden-record/my_test_api_client/api/tag1/get_tag_with_number.py
index 51613b806..322429ec6 100644
--- a/end_to_end_tests/golden-record/my_test_api_client/api/tag1/get_tag_with_number.py
+++ b/end_to_end_tests/golden-record/my_test_api_client/api/tag1/get_tag_with_number.py
@@ -20,7 +20,6 @@ def _get_kwargs(
         "headers": headers,
         "cookies": cookies,
         "timeout": client.get_timeout(),
-        "verify": client.verify_ssl,
     }
 
 
@@ -42,6 +41,7 @@ def sync_detailed(
     )
 
     response = httpx.get(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -56,7 +56,7 @@ async def asyncio_detailed(
         client=client,
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.get(**kwargs)
 
     return _build_response(response=response)
diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/defaults_tests_defaults_post.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/defaults_tests_defaults_post.py
index 9f9fcc088..74d6fc26c 100644
--- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/defaults_tests_defaults_post.py
+++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/defaults_tests_defaults_post.py
@@ -80,7 +80,6 @@ def _get_kwargs(
         "cookies": cookies,
         "timeout": client.get_timeout(),
         "params": params,
-        "verify": client.verify_ssl,
     }
 
 
@@ -136,6 +135,7 @@ def sync_detailed(
     )
 
     response = httpx.post(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -205,7 +205,7 @@ async def asyncio_detailed(
         required_model_prop=required_model_prop,
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.post(**kwargs)
 
     return _build_response(response=response)
diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_booleans.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_booleans.py
index 7776c56f7..243e145c6 100644
--- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_booleans.py
+++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_booleans.py
@@ -20,7 +20,6 @@ def _get_kwargs(
         "headers": headers,
         "cookies": cookies,
         "timeout": client.get_timeout(),
-        "verify": client.verify_ssl,
     }
 
 
@@ -50,6 +49,7 @@ def sync_detailed(
     )
 
     response = httpx.get(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -75,7 +75,7 @@ async def asyncio_detailed(
         client=client,
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.get(**kwargs)
 
     return _build_response(response=response)
diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_floats.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_floats.py
index d652f39c7..99200c0b8 100644
--- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_floats.py
+++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_floats.py
@@ -20,7 +20,6 @@ def _get_kwargs(
         "headers": headers,
         "cookies": cookies,
         "timeout": client.get_timeout(),
-        "verify": client.verify_ssl,
     }
 
 
@@ -50,6 +49,7 @@ def sync_detailed(
     )
 
     response = httpx.get(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -75,7 +75,7 @@ async def asyncio_detailed(
         client=client,
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.get(**kwargs)
 
     return _build_response(response=response)
diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_integers.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_integers.py
index 49f854186..cfb47195a 100644
--- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_integers.py
+++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_integers.py
@@ -20,7 +20,6 @@ def _get_kwargs(
         "headers": headers,
         "cookies": cookies,
         "timeout": client.get_timeout(),
-        "verify": client.verify_ssl,
     }
 
 
@@ -50,6 +49,7 @@ def sync_detailed(
     )
 
     response = httpx.get(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -75,7 +75,7 @@ async def asyncio_detailed(
         client=client,
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.get(**kwargs)
 
     return _build_response(response=response)
diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_strings.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_strings.py
index 21b7a340f..9a2542862 100644
--- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_strings.py
+++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_strings.py
@@ -20,7 +20,6 @@ def _get_kwargs(
         "headers": headers,
         "cookies": cookies,
         "timeout": client.get_timeout(),
-        "verify": client.verify_ssl,
     }
 
 
@@ -50,6 +49,7 @@ def sync_detailed(
     )
 
     response = httpx.get(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -75,7 +75,7 @@ async def asyncio_detailed(
         client=client,
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.get(**kwargs)
 
     return _build_response(response=response)
diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_user_list.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_user_list.py
index fa6d12bb4..24410bef0 100644
--- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_user_list.py
+++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/get_user_list.py
@@ -59,7 +59,6 @@ def _get_kwargs(
         "cookies": cookies,
         "timeout": client.get_timeout(),
         "params": params,
-        "verify": client.verify_ssl,
     }
 
 
@@ -110,6 +109,7 @@ def sync_detailed(
     )
 
     response = httpx.get(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -151,7 +151,7 @@ async def asyncio_detailed(
         some_date=some_date,
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.get(**kwargs)
 
     return _build_response(response=response)
diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/int_enum_tests_int_enum_post.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/int_enum_tests_int_enum_post.py
index 084892c6f..3f0ce55ac 100644
--- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/int_enum_tests_int_enum_post.py
+++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/int_enum_tests_int_enum_post.py
@@ -31,7 +31,6 @@ def _get_kwargs(
         "cookies": cookies,
         "timeout": client.get_timeout(),
         "params": params,
-        "verify": client.verify_ssl,
     }
 
 
@@ -67,6 +66,7 @@ def sync_detailed(
     )
 
     response = httpx.post(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -96,7 +96,7 @@ async def asyncio_detailed(
         int_enum=int_enum,
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.post(**kwargs)
 
     return _build_response(response=response)
diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/json_body_tests_json_body_post.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/json_body_tests_json_body_post.py
index 296685d07..e74b82581 100644
--- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/json_body_tests_json_body_post.py
+++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/json_body_tests_json_body_post.py
@@ -26,7 +26,6 @@ def _get_kwargs(
         "cookies": cookies,
         "timeout": client.get_timeout(),
         "json": json_json_body,
-        "verify": client.verify_ssl,
     }
 
 
@@ -62,6 +61,7 @@ def sync_detailed(
     )
 
     response = httpx.post(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -91,7 +91,7 @@ async def asyncio_detailed(
         json_body=json_body,
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.post(**kwargs)
 
     return _build_response(response=response)
diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/no_response_tests_no_response_get.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/no_response_tests_no_response_get.py
index 71b3f46ba..598632a49 100644
--- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/no_response_tests_no_response_get.py
+++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/no_response_tests_no_response_get.py
@@ -20,7 +20,6 @@ def _get_kwargs(
         "headers": headers,
         "cookies": cookies,
         "timeout": client.get_timeout(),
-        "verify": client.verify_ssl,
     }
 
 
@@ -42,6 +41,7 @@ def sync_detailed(
     )
 
     response = httpx.get(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -56,7 +56,7 @@ async def asyncio_detailed(
         client=client,
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.get(**kwargs)
 
     return _build_response(response=response)
diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/octet_stream_tests_octet_stream_get.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/octet_stream_tests_octet_stream_get.py
index 6741306a4..34405a2b0 100644
--- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/octet_stream_tests_octet_stream_get.py
+++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/octet_stream_tests_octet_stream_get.py
@@ -21,7 +21,6 @@ def _get_kwargs(
         "headers": headers,
         "cookies": cookies,
         "timeout": client.get_timeout(),
-        "verify": client.verify_ssl,
     }
 
 
@@ -51,6 +50,7 @@ def sync_detailed(
     )
 
     response = httpx.get(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -76,7 +76,7 @@ async def asyncio_detailed(
         client=client,
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.get(**kwargs)
 
     return _build_response(response=response)
diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/post_form_data.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/post_form_data.py
index a92f4e8f8..ecd55c9e7 100644
--- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/post_form_data.py
+++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/post_form_data.py
@@ -23,7 +23,6 @@ def _get_kwargs(
         "cookies": cookies,
         "timeout": client.get_timeout(),
         "data": form_data.to_dict(),
-        "verify": client.verify_ssl,
     }
 
 
@@ -47,6 +46,7 @@ def sync_detailed(
     )
 
     response = httpx.post(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -63,7 +63,7 @@ async def asyncio_detailed(
         form_data=form_data,
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.post(**kwargs)
 
     return _build_response(response=response)
diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/test_inline_objects.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/test_inline_objects.py
index a4d1919c7..655150038 100644
--- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/test_inline_objects.py
+++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/test_inline_objects.py
@@ -26,7 +26,6 @@ def _get_kwargs(
         "cookies": cookies,
         "timeout": client.get_timeout(),
         "json": json_json_body,
-        "verify": client.verify_ssl,
     }
 
 
@@ -58,6 +57,7 @@ def sync_detailed(
     )
 
     response = httpx.post(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -87,7 +87,7 @@ async def asyncio_detailed(
         json_body=json_body,
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.post(**kwargs)
 
     return _build_response(response=response)
diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/token_with_cookie_auth_token_with_cookie_get.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/token_with_cookie_auth_token_with_cookie_get.py
index 2e3a5cbfc..2b9191822 100644
--- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/token_with_cookie_auth_token_with_cookie_get.py
+++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/token_with_cookie_auth_token_with_cookie_get.py
@@ -23,7 +23,6 @@ def _get_kwargs(
         "headers": headers,
         "cookies": cookies,
         "timeout": client.get_timeout(),
-        "verify": client.verify_ssl,
     }
 
 
@@ -47,6 +46,7 @@ def sync_detailed(
     )
 
     response = httpx.get(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -63,7 +63,7 @@ async def asyncio_detailed(
         my_token=my_token,
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.get(**kwargs)
 
     return _build_response(response=response)
diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/unsupported_content_tests_unsupported_content_get.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/unsupported_content_tests_unsupported_content_get.py
index 0fdb4ff2c..84f1581d5 100644
--- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/unsupported_content_tests_unsupported_content_get.py
+++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/unsupported_content_tests_unsupported_content_get.py
@@ -20,7 +20,6 @@ def _get_kwargs(
         "headers": headers,
         "cookies": cookies,
         "timeout": client.get_timeout(),
-        "verify": client.verify_ssl,
     }
 
 
@@ -42,6 +41,7 @@ def sync_detailed(
     )
 
     response = httpx.get(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -56,7 +56,7 @@ async def asyncio_detailed(
         client=client,
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.get(**kwargs)
 
     return _build_response(response=response)
diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/upload_file_tests_upload_post.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/upload_file_tests_upload_post.py
index 6db011608..652d8c323 100644
--- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/upload_file_tests_upload_post.py
+++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/upload_file_tests_upload_post.py
@@ -30,7 +30,6 @@ def _get_kwargs(
         "cookies": cookies,
         "timeout": client.get_timeout(),
         "files": multipart_multipart_data,
-        "verify": client.verify_ssl,
     }
 
 
@@ -68,6 +67,7 @@ def sync_detailed(
     )
 
     response = httpx.post(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -101,7 +101,7 @@ async def asyncio_detailed(
         keep_alive=keep_alive,
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.post(**kwargs)
 
     return _build_response(response=response)
diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/tests/upload_multiple_files_tests_upload_post.py b/end_to_end_tests/golden-record/my_test_api_client/api/tests/upload_multiple_files_tests_upload_post.py
index 690d52ede..8c9209a31 100644
--- a/end_to_end_tests/golden-record/my_test_api_client/api/tests/upload_multiple_files_tests_upload_post.py
+++ b/end_to_end_tests/golden-record/my_test_api_client/api/tests/upload_multiple_files_tests_upload_post.py
@@ -33,7 +33,6 @@ def _get_kwargs(
         "cookies": cookies,
         "timeout": client.get_timeout(),
         "files": multipart_multipart_data,
-        "verify": client.verify_ssl,
     }
 
 
@@ -71,6 +70,7 @@ def sync_detailed(
     )
 
     response = httpx.post(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -104,7 +104,7 @@ async def asyncio_detailed(
         keep_alive=keep_alive,
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.post(**kwargs)
 
     return _build_response(response=response)
diff --git a/end_to_end_tests/golden-record/my_test_api_client/api/true_/false_.py b/end_to_end_tests/golden-record/my_test_api_client/api/true_/false_.py
index c5c172900..87f924558 100644
--- a/end_to_end_tests/golden-record/my_test_api_client/api/true_/false_.py
+++ b/end_to_end_tests/golden-record/my_test_api_client/api/true_/false_.py
@@ -27,7 +27,6 @@ def _get_kwargs(
         "cookies": cookies,
         "timeout": client.get_timeout(),
         "params": params,
-        "verify": client.verify_ssl,
     }
 
 
@@ -51,6 +50,7 @@ def sync_detailed(
     )
 
     response = httpx.get(
+        verify=client.verify_ssl,
         **kwargs,
     )
 
@@ -67,7 +67,7 @@ async def asyncio_detailed(
         import_=import_,
     )
 
-    async with httpx.AsyncClient() as _client:
+    async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
         response = await _client.get(**kwargs)
 
     return _build_response(response=response)