MS OpenAPI does not generate a valid schema for nullable complex properties #59976
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
The new OpenAPI support for ASP.NET Core projects generates semantic errors for some types, specifically for $ref entries. The sample below reproduces the issue: one of the properties gets the following ref: "$ref" "#/components/schemas/#/properties/locaisRemover/items/properties/locais" which produces invalid description.
Expected Behavior
No response
Steps To Reproduce
Here's a sample that reproduces the issue by using and :
Exceptions (if any)
No response
.NET Version
9.0.101
Anything else?
No response
The text was updated successfully, but these errors were encountered: