-
-
Notifications
You must be signed in to change notification settings - Fork 262
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
Description
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:
- generate a client based on 'http://sandbox.platform.recital.ai:8000/api/v1/openapi.json'
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):
- OS: Ubuntu 20.04.2 LTS (Focal Fossa)
- Python Version: 3.8.8
- openapi-python-client version: 0.8.0
illagrenan and Mdrbhatti
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