Generating this client results in bad output. The type is showing as OneOf when it should be ApplicationTypes.

generatorName: csharp
library: generichost
outputDir: 'C:\Users\devhl\repos\openapi-generator-sample-output\Discord\generated'
inputSpec: 'https://raw.githubusercontent.com/discord/discord-api-spec/main/specs/openapi.json'
additionalProperties:
modelPropertySorting: default
operationParameterSorting: default
The model looks like this
"BasicApplicationResponse": {
"type": "object",
"properties": {
...
"type": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/ApplicationTypes"
}
]
},
It looks like the issue starts in the DefaultCodegen, but I don't see an easy way to fix it.

Bug Report Checklist
Description
openapi-generator version
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix
Generating this client results in bad output. The type is showing as OneOf when it should be ApplicationTypes.
The model looks like this
It looks like the issue starts in the DefaultCodegen, but I don't see an easy way to fix it.

Bug Report Checklist
Description
openapi-generator version
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix