Skip to content

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

Open
@demeringo

Description

@demeringo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions