Open
Description
Describe the bug
When attempting to generate the SDK for API V0.2.0 alpha, generated code does not consider the oneOf or anyOf properties (for example in the time_workload
of cloud usage in https://dev.api.boavizta.org/docs#/cloud/instance_cloud_impact_v1_cloud_aws_post)
Known bug in open-api generator:
Maybe we could try a alternative sdk generator:
- https://github.com/oxidecomputer/progenitor
- initially mentionned in this threadq [BUG] [typescript-fetch] Union types mixing objects and primitives generate invalid types OpenAPITools/openapi-generator#7868 and Progenitor port zerotier/zeronsd#186
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
Generate an enum with the different variants of time_workload (a f32
or a list of workload_time
structs) instead of an empty struct.
Additional context
Add any other context about the problem here.