Microsoft has removed Swagger UI from .NET 9 in favor of a native OpenAPI document generation package, `Microsoft.AspNetCore.OpenApi`. This switch is due to the lack of active maintenance and dependence on external tools. The new built-in package simplifies OpenAPI documentation generation with native support, minimal configuration, and integration with Minimal APIs. Developers can upgrade their projects to .NET 9 and add the `Microsoft.AspNetCore.OpenApi` package to leverage this feature. Alternative tools like Scalar are available for those who still prefer using different documentation interfaces.
Table of contents
Built-in OpenAPI Document Generation with .NET 9 — No more SwaggerUI! 👋What’s Swagger UI?What’s OpenAPI?Replacement of Swagger UI with OpenAPI1 Comment
Sort: