Skip to content

[PYTHON] Apikey mess between Configuration() instances in Python client. #9117

Closed
@ruslanlazin

Description

@ruslanlazin
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions