github domaindrivendev/Swashbuckle.AspNetCore v11.0.0

one hour ago

Swashbuckle.AspNetCore v11.0.0

Important

This release contains major breaking changes.

Read our v11 migration guide for further information.

With this release, Swashbuckle.AspNetCore adds support for generating OpenAPI 3.2 documents and for ASP.NET Core 11.

Swashbuckle.AspNetCore v11 depends on OpenAPI.NET v3.11 which introduces some breaking changes to the public API surface. More information can be found in their OpenAPI.NET v3 Upgrade Guide.

To reduce the number of breaking behavioural changes in Swashbuckle.AspNetCore v11, generation of OpenAPI 3.1 and 3.2 documents is opt-in.
To generate OpenAPI 3.1 or 3.2 documents, change the OpenAPI version as shown in the code snippet below:

app.UseSwagger(options =>
{
    options.OpenApiVersion = OpenApiSpecVersion.OpenApi3_1;
    // ...or
    options.OpenApiVersion = OpenApiSpecVersion.OpenApi3_2;
});

Tip

It is strongly recommended that you upgrade to Swashbuckle.AspNetCore v10.3.1 before upgrading to v11.

What's Changed

New Contributors

Full Changelog: v10.3.1...v11.0.0

Don't miss a new Swashbuckle.AspNetCore release

NewReleases is sending notifications on new releases.