Closed
Description
Description
Swagger-codegen version
3.0.22
In 3.0.x the instances of the Configuration
Python class generated still share the api_key
. This has been fixed in master
: #9117
Steps to reproduce
I confirmed that, after creating 2 instances of Configuration
changing the content of the api_key
dict on one instance changes its content in the other:
>>> from domino_client_v4 import Configuration
>>> c1 = Configuration()
>>> c1.api_key['Authorization'] = "c1 auth"
>>> c2 = Configuration()
>>> c2.api_key['Authorization'] = "c2 auth"
>>> for c in [c1, c2]:
... print(c.api_key)
...
{'Authorization': 'c2 auth'}
{'Authorization': 'c2 auth'}
Related issues/PRs
Suggest a fix/enhancement
The fix for #9117 (#9130) could conceivably be ported to 3.0.0
.
Metadata
Metadata
Assignees
Labels
No labels