Bug Report Checklist
Description
BooleanEnum.TRUE is BooleanEnum(True) fails
This should work because instantiated enums are stored in a class constant in the Singleton class.
BooleanEnum.TRUE.class DynamicDynamicBooleanEnum? It should only have one Dynamic
So it looks like there is an incorrect extra layer of class creation happening here
Track it down and remove it
Then BooleanEnum.TRUE is BooleanEnum(True) will work
openapi-generator version
Latest master branch
OpenAPI declaration file content or url
N/A use the python-experimental sample
Generation Details
N/A
Steps to reproduce
assert BooleanEnum.TRUE is BooleanEnum(True)
Related issues/PRs
This came up when investigating #12151
and writing the fix #12157
Suggest a fix
Remove the extra layer of class creation
Bug Report Checklist
Description
BooleanEnum.TRUE is BooleanEnum(True) fails
This should work because instantiated enums are stored in a class constant in the Singleton class.
BooleanEnum.TRUE.class DynamicDynamicBooleanEnum? It should only have one Dynamic
So it looks like there is an incorrect extra layer of class creation happening here
Track it down and remove it
Then
BooleanEnum.TRUE is BooleanEnum(True)will workopenapi-generator version
Latest master branch
OpenAPI declaration file content or url
N/A use the python-experimental sample
Generation Details
N/A
Steps to reproduce
assert BooleanEnum.TRUE is BooleanEnum(True)Related issues/PRs
This came up when investigating #12151
and writing the fix #12157
Suggest a fix
Remove the extra layer of class creation