Servers not emitted in OpenAPI document #56188
Labels
feature-openapi
old-area-web-frameworks-do-not-use
*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels
Is there an existing issue for this?
Describe the bug
I ran the spectral CLI against the OpenAPI schema generated for an app of mine using .NET 9 preview.4, and there was a single warning against it:
I see in #54598 that
servers
is mentioned, but I can't find anything explicit to track adding it in another issue or in any of the checkboxes in that issue.It also isn't currently assigned in the code:
aspnetcore/src/OpenApi/src/Services/OpenApiDocumentService.cs
Lines 55 to 60 in 2b5d2b3
Expected Behavior
The
servers
property is present in the emitted OpenAPI schema document.Steps To Reproduce
Generate an OpenAPI document for a Minimal API using the new OpenAPI NuGet package.
Exceptions (if any)
None.
.NET Version
9.0.100-preview.4.24267.66
Anything else?
No response
The text was updated successfully, but these errors were encountered: