-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed
Labels
area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-openapi
Milestone
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
Even if Dotnet version 9.0.4 is supposed to fix #60339, a minimal model in the repro project emits wrong Json shema
Expected Behavior
In the repro project, I expect the correct Json schema to be created at https://localhost:7295/openapi/v1.json
but the wrong schema is created:
If you uncomment the code in Program.cs lines 11-14, a schema transformer is applied and the correct schema is generated.
Steps To Reproduce
Clone repro solution at
https://github.com/itroncolinis/openapibug
Launch the application and verify the json schema at https://localhost:7295/openapi/v1.json
Exceptions (if any)
No response
.NET Version
9.0.203
Anything else?
My IDE is Visual Studio 2022 (Version 17.13.6)
Metadata
Metadata
Assignees
Labels
area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-openapi