You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
oas3-api-servers
OpenAPI "servers" must be present and non-empty array.
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.
servers: Derived from the host info registered in the IServer implementation.
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: