Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openapi-generator fails to produce sdk code for API V0.2 #6

Open
demeringo opened this issue Oct 18, 2022 · 0 comments
Open

Openapi-generator fails to produce sdk code for API V0.2 #6

demeringo opened this issue Oct 18, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@demeringo
Copy link
Collaborator

demeringo commented 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:

Maybe we could try a alternative sdk generator:

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. 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.

@demeringo demeringo added the bug Something isn't working label Oct 18, 2022
@demeringo 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
demeringo added a commit that referenced this issue Oct 18, 2022
…mber.

This is a workaround against code generation issue #6
@demeringo demeringo mentioned this issue Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant