-
-
Notifications
You must be signed in to change notification settings - Fork 272
Support inline allOf enum #422
Copy link
Copy link
Closed
Labels
✨ enhancementNew feature or improvementNew feature or improvement🍭 OpenAPI ComplianceSupporting a new bit of the OpenAPI specSupporting a new bit of the OpenAPI spec
Metadata
Metadata
Assignees
Labels
✨ enhancementNew feature or improvementNew feature or improvement🍭 OpenAPI ComplianceSupporting a new bit of the OpenAPI specSupporting a new bit of the OpenAPI spec
Describe the bug
In my openapi.json, a parameter for one of my schemas has a string enum as its type, and a member of that enum as its default value.
In the generated client it has type Union[Unset, None] and default value UNSET.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
In the generated client, the schema's parameter should have type Union[Unset, MyEnum] and default value MyEnum.VALUE like in the openapi.json
OpenAPI Spec File
http://sandbox.platform.recital.ai:8000/api/v1/openapi.json
Desktop (please complete the following information):