You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
demeringo
changed the title
API code generator fails to produce code for API V0.2
Openapi-generator fails to produce sdk code for API V0.2
Oct 18, 2022
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:
oneOf
is mapped into a struct instead of enum OpenAPITools/openapi-generator#9497Maybe we could try a alternative sdk generator:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Generate an enum with the different variants of time_workload (a
f32
or a list ofworkload_time
structs) instead of an empty struct.Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: