Skip to content

[BUG] OneOf problem #15867

@devhl-labs

Description

@devhl-labs

Please see this branch which illustrates the problem. https://github.com/devhl-labs/openapi-generator/tree/one-of-issue

The issue is that oneOf options are treated inconsistently.

public BillingInvoiceCustomer(CustomerId? customerId, string customerId, string name)

Here you can see one of the oneOf options is being wrapped in it's own class of CustomerId. But then the other option is not wrapped in it's own class. I would expect it to be more like this

public BillingInvoiceCustomer(CustomerId customerId)
public BillingInvoiceCustomer(CustomerDetails customerDetails)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions