Microsoft.AspNetCore.OpenApi 11.0.0-preview.7.26381.103
About
Microsoft.AspNetCore.OpenApi is a NuGet package that provides built-in support for generating OpenAPI documents from minimal or controller-based APIs in ASP.NET Core.
Key Features
- Supports viewing generated OpenAPI documents at runtime via a parameterized endpoint (
/openapi/{documentName}.json) - Supports generating an OpenAPI document at build-time
- Supports customizing the generated document via document transformers
How to Use
To start using Microsoft.AspNetCore.OpenApi in your ASP.NET Core application, follow these steps:
Installation
dotnet add package Microsoft.AspNetCore.OpenApi
Configuration
In your Program.cs file, register the services provided by this package in the DI container and map the provided OpenAPI document endpoint in the application.
var builder = WebApplication.CreateBuilder();
// Registers the required services
builder.Services.AddOpenApi();
var app = builder.Build();
// Adds the /openapi/{documentName}.json endpoint to the application
app.MapOpenApi();
app.Run();
For more information on configuring and using Microsoft.AspNetCore.OpenApi, refer to the official documentation.
Build-time Document Generation
Microsoft.AspNetCore.OpenApi supports generating OpenAPI documents at build time via the Microsoft.Extensions.ApiDescription.Server package. When you run dotnet build, the document generation tool runs automatically.
Viewing Build-time Generation Output
By default, the .NET 8+ Terminal Logger suppresses the document generation tool output. To see the full generation logs, including messages like Generating document named 'v1', use one of the following approaches:
Increase Terminal Logger verbosity: Pass
-tlp:v=d(detailed) to your build command:dotnet build -tlp:v=dDisable the Terminal Logger: Pass
--tl:offto fall back to the classic logger, which shows all tool output:dotnet build --tl:off
This is particularly useful when debugging OpenAPI document generation issues.
Main Types
The main types provided by this library are:
OpenApiOptions: Options for configuring OpenAPI document generation.IDocumentTransformer: Transformer that modifies the OpenAPI document generated by the library.
Feedback & Contributing
Microsoft.AspNetCore.OpenApi is released as open-source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
Showing the top 20 packages that depend on Microsoft.AspNetCore.OpenApi.
| Packages | Downloads |
|---|---|
|
Scalar.AspNetCore
Package Description
|
1 |
.NET 11.0
- Microsoft.AspNetCore.WebUtilities (>= 11.0.0-preview.7.26381.103)
- Microsoft.Extensions.Hosting (>= 11.0.0-preview.7.26381.103)
- Microsoft.OpenApi (>= 3.9.0 && < 4.0.0)
| Version | Downloads | Last updated |
|---|---|---|
| 11.0.0-preview.7.26381.103 | 1 | 08/12/2026 |
| 11.0.0-preview.6.26359.118 | 2 | 07/21/2026 |
| 11.0.0-preview.5.26302.115 | 1 | 07/12/2026 |
| 11.0.0-preview.4.26230.115 | 1 | 07/12/2026 |
| 11.0.0-preview.3.26207.106 | 1 | 07/12/2026 |
| 11.0.0-preview.2.26159.112 | 1 | 07/12/2026 |
| 11.0.0-preview.1.26104.118 | 1 | 07/12/2026 |
| 10.0.11 | 1 | 08/12/2026 |
| 10.0.10 | 1 | 07/21/2026 |
| 10.0.9 | 1 | 07/12/2026 |
| 10.0.8 | 1 | 07/12/2026 |
| 10.0.7 | 1 | 07/12/2026 |
| 10.0.6 | 1 | 07/12/2026 |
| 10.0.5 | 1 | 07/12/2026 |
| 10.0.4 | 1 | 07/12/2026 |
| 10.0.3 | 1 | 07/12/2026 |
| 10.0.2 | 1 | 07/12/2026 |
| 10.0.1 | 1 | 07/12/2026 |
| 10.0.0 | 1 | 07/12/2026 |
| 10.0.0-rc.2.25502.107 | 1 | 07/12/2026 |
| 10.0.0-rc.1.25451.107 | 1 | 07/12/2026 |
| 10.0.0-preview.7.25380.108 | 1 | 07/12/2026 |
| 10.0.0-preview.6.25358.103 | 1 | 07/12/2026 |
| 10.0.0-preview.5.25277.114 | 1 | 07/12/2026 |
| 10.0.0-preview.4.25258.110 | 1 | 07/12/2026 |
| 10.0.0-preview.3.25172.1 | 1 | 07/12/2026 |
| 10.0.0-preview.2.25164.1 | 1 | 07/12/2026 |
| 10.0.0-preview.1.25120.3 | 1 | 07/12/2026 |
| 9.0.19 | 1 | 08/12/2026 |
| 9.0.18 | 1 | 07/21/2026 |
| 9.0.17 | 1 | 07/12/2026 |
| 9.0.16 | 1 | 07/12/2026 |
| 9.0.15 | 1 | 07/12/2026 |
| 9.0.14 | 1 | 07/12/2026 |
| 9.0.13 | 1 | 07/12/2026 |
| 9.0.12 | 1 | 07/12/2026 |
| 9.0.11 | 1 | 07/12/2026 |
| 9.0.10 | 1 | 07/12/2026 |
| 9.0.9 | 1 | 07/12/2026 |
| 9.0.8 | 1 | 07/12/2026 |
| 9.0.7 | 1 | 07/12/2026 |
| 9.0.6 | 1 | 07/12/2026 |
| 9.0.5 | 1 | 07/12/2026 |
| 9.0.4 | 1 | 07/12/2026 |
| 9.0.3 | 1 | 07/12/2026 |
| 9.0.2 | 1 | 07/12/2026 |
| 9.0.1 | 1 | 07/12/2026 |
| 9.0.0 | 1 | 07/12/2026 |
| 9.0.0-rc.2.24474.3 | 1 | 07/12/2026 |
| 9.0.0-rc.1.24452.1 | 1 | 07/12/2026 |
| 9.0.0-preview.7.24406.2 | 1 | 07/12/2026 |
| 9.0.0-preview.6.24328.4 | 1 | 07/12/2026 |
| 9.0.0-preview.5.24306.11 | 1 | 07/12/2026 |
| 9.0.0-preview.4.24267.6 | 1 | 07/12/2026 |
| 9.0.0-preview.3.24172.13 | 1 | 07/12/2026 |
| 9.0.0-preview.2.24128.4 | 1 | 07/12/2026 |
| 9.0.0-preview.1.24081.5 | 1 | 07/12/2026 |
| 8.0.30 | 1 | 08/12/2026 |
| 8.0.29 | 1 | 07/21/2026 |
| 8.0.28 | 1 | 07/12/2026 |
| 8.0.27 | 1 | 07/12/2026 |
| 8.0.26 | 1 | 07/12/2026 |
| 8.0.25 | 1 | 07/12/2026 |
| 8.0.24 | 1 | 07/12/2026 |
| 8.0.23 | 1 | 07/12/2026 |
| 8.0.22 | 1 | 07/12/2026 |
| 8.0.21 | 1 | 07/12/2026 |
| 8.0.20 | 1 | 07/12/2026 |
| 8.0.19 | 1 | 07/12/2026 |
| 8.0.18 | 1 | 07/12/2026 |
| 8.0.17 | 1 | 07/12/2026 |
| 8.0.16 | 1 | 07/12/2026 |
| 8.0.15 | 1 | 07/12/2026 |
| 8.0.14 | 1 | 07/12/2026 |
| 8.0.13 | 1 | 07/12/2026 |
| 8.0.12 | 1 | 07/12/2026 |
| 8.0.11 | 1 | 07/12/2026 |
| 8.0.10 | 1 | 07/12/2026 |
| 8.0.8 | 1 | 07/12/2026 |
| 8.0.7 | 1 | 07/12/2026 |
| 8.0.6 | 1 | 07/12/2026 |
| 8.0.5 | 1 | 07/12/2026 |
| 8.0.4 | 1 | 07/12/2026 |
| 8.0.3 | 1 | 07/12/2026 |
| 8.0.2 | 1 | 07/12/2026 |
| 8.0.1 | 1 | 07/12/2026 |
| 8.0.0 | 1 | 07/12/2026 |
| 8.0.0-rc.2.23480.2 | 1 | 07/12/2026 |
| 8.0.0-rc.1.23421.29 | 1 | 07/12/2026 |
| 8.0.0-preview.7.23375.9 | 1 | 07/12/2026 |
| 8.0.0-preview.6.23329.11 | 1 | 07/12/2026 |
| 8.0.0-preview.5.23302.2 | 1 | 07/12/2026 |
| 8.0.0-preview.4.23260.4 | 1 | 07/12/2026 |
| 8.0.0-preview.3.23177.8 | 1 | 07/12/2026 |
| 8.0.0-preview.2.23153.2 | 1 | 07/12/2026 |
| 8.0.0-preview.1.23112.2 | 1 | 07/12/2026 |
| 7.0.20 | 1 | 07/12/2026 |
| 7.0.19 | 1 | 07/12/2026 |
| 7.0.18 | 1 | 07/12/2026 |
| 7.0.17 | 1 | 07/12/2026 |
| 7.0.16 | 1 | 07/12/2026 |
| 7.0.15 | 1 | 07/12/2026 |
| 7.0.14 | 1 | 07/12/2026 |
| 7.0.13 | 1 | 07/12/2026 |
| 7.0.12 | 1 | 07/12/2026 |
| 7.0.11 | 1 | 07/12/2026 |
| 7.0.10 | 1 | 07/12/2026 |
| 7.0.9 | 1 | 07/12/2026 |
| 7.0.8 | 1 | 07/12/2026 |
| 7.0.7 | 1 | 07/12/2026 |
| 7.0.5 | 1 | 07/12/2026 |
| 7.0.4 | 1 | 07/12/2026 |
| 7.0.3 | 1 | 07/12/2026 |
| 7.0.2 | 1 | 07/12/2026 |
| 7.0.1 | 1 | 07/12/2026 |
| 7.0.0 | 1 | 07/12/2026 |
| 7.0.0-rc.2.22476.2 | 1 | 07/12/2026 |
| 7.0.0-rc.1.22427.2 | 1 | 07/12/2026 |
| 7.0.0-preview.7.22376.6 | 1 | 07/12/2026 |
| 7.0.0-preview.6.22330.3 | 1 | 07/12/2026 |
| 7.0.0-preview.5.22303.8 | 1 | 07/12/2026 |
| 7.0.0-preview.4.22251.1 | 1 | 07/12/2026 |