I have such a component in swagger.json (OpenAPI version: "3.0.1")
"ids": {
"type": "array",
"items": {
"type": "string",
"format": "uuid",
"nullable": true,
"x-nullable": true
},
"nullable": true,
"x-nullable": true
}
With the OpenAPI generator, I intend to create such a type in C#:
List<Guid?>?
However, as a result, it generates
List<Guid>?
I traced the models, to find the dataType as follows:
"dataType" : "List<Guid>"
And IsNullable is true
"isNullable" : true
For its items, the dataType is "Guid" and isNullable is true
"dataType" : "Guid",
"isNullable" : true,
The Mustache statement is
{{{datatypeWithEnum}}}{{#lambda.first}}{{#isNullable}}{{>NullConditionalProperty}}
so we can tell that the '?' actually comes from NullConditionalProperty.
Is it supported that the array items can be nullable for the C# language?