.NET 9 OpenAPI incorrect schema for array of nullable strings #60803
Labels
area-minimal
Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc
feature-openapi
Is there an existing issue for this?
Describe the bug
When a class has a property of type string?[], the generated OpenApi schema does not allow nulls.
Expected Behavior
The schema object should allow nulls in the array.
Steps To Reproduce
Minimal repro:
Exceptions (if any)
No response
.NET Version
9.0.2 and 10.0.100-preview.1.25120.13
Anything else?
Any ideas how to fix this with for example a schema transformer?
The text was updated successfully, but these errors were encountered: