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)
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