OpenAPITypeProvider
OpenAPITypeProvider copied to clipboard
Array with nullable items not wrapped in Option
Hi,
Thanks for this great library. Maybe I'm missing something (haven't really used OpenAPI much), but an array with nullable items does not seem to come through with items wrapped in Option. For example:
"Example": {
"title": "Example",
"required": [ "items" ],
"type": "object",
"properties": {
"items": {
"title": "Items",
"type": "array",
"items": {
"type": "integer",
"nullable": true
},
"description": "Should be Option<int>, but is just int"
},
}
},
With this definition, Items is a List<int> rather than a List<Option<int>>. Is this a bug, or am I doing something wrong?