Description
I use generated python client with different apikeys in different instances. Setting it in one instance changed apikey in other instances too.
It seems an error in creating Configuration object by coping the default object, after it all instances shares the same apikey dictionary.
Swagger-codegen version
2.4.0
Steps to reproduce
- Create 2 instances of Configuration()
- Set apikey in one of them.
- See value from step 2 in all instances and in
default field
Related issues/PRs
4677996
#6554
Suggest a fix/enhancement
As a quick fix I just removed creating Configuration by cloning default object and use the constructor directly.