-
Notifications
You must be signed in to change notification settings - Fork 6k
Open
Description
Description
proxy is not a valid argument to aiohttp.ClientSession. As far as I can tell, it hasn't ever been -- which makes this even more confusing, since that means this has always been wrong?
Swagger-codegen version
current
Swagger declaration file content or url
The python asyncio rest.py template is invalid
swagger-codegen/modules/swagger-codegen/src/main/resources/python/asyncio/rest.mustache
Lines 63 to 67 in 5a9f449
| if configuration.proxy: | |
| self.pool_manager = aiohttp.ClientSession( | |
| connector=connector, | |
| proxy=configuration.proxy | |
| ) |
Command line used for generation
--library asyncio
Steps to reproduce
Generate any async code
Related issues/PRs
None
Suggest a fix/enhancement
aiohttp.ClientSession doesn't take a proxy (although it might at some point). However, session.request does. So, possibly, just store the proxy info as part of RESTClientObject and pass it along to request in args here
Metadata
Metadata
Assignees
Labels
No labels