v10.0.0
Swashbuckle.AspNetCore v10.0.0
[!IMPORTANT]
This release contains major breaking changes.Read our v10 migration guide for further information.
With this release, Swashbuckle.AspNetCore adds support for generating OpenAPI 3.1 documents and for ASP.NET Core 10.
Swashbuckle.AspNetCore v10 depends on OpenAPI.NET v2.3 which introduces many breaking changes to the public API surface. More information can be found in their OpenAPI.NET v2 Upgrade Guide.
To reduce the number of breaking behavioural changes in Swashbuckle.AspNetCore v10, generation of OpenAPI 3.1 documents is opt-in. To generate OpenAPI 3.1 documents, change the OpenAPI version as shown in the code snippet below:
app.UseSwagger(options =>
{
options.OpenApiVersion = OpenApiSpecVersion.OpenApi3_1;
});
[!TIP] It is strongly recommended that you upgrade to Swashbuckle.AspNetCore v9.0.6 before upgrading to v10.
[!IMPORTANT]
Use of Swashbuckle.AspNetCore with the ASP.NET CoreWithOpenApi()method is no longer supported.
What's Changed
- Update README badges by @martincostello in https://github.com/domaindrivendev/Swashbuckle.AspNetCore/pull/3597
- Extend NuGet package validation by @martincostello in https://github.com/domaindrivendev/Swashbuckle.AspNetCore/pull/3602
- Support .NET 10 by @martincostello in https://github.com/domaindrivendev/Swashbuckle.AspNetCore/pull/3283
Full Changelog: https://github.com/domaindrivendev/Swashbuckle.AspNetCore/compare/v9.0.6...v10.0.0