-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Open
Labels
Description
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)Reactions are currently unavailable