swashbuckle.aspnetcore.swagger breaking changes
swashbuckle.aspnetcore.swagger 11.0.0 (November 10, 2026) is its newest release with breaking changes, 3 of them. The first: Multiple response types become anyOf schemas on .NET 11 in Swashbuckle.AspNetCore.Swagger 11.0.0. Every breaking API change we have recorded in swashbuckle.aspnetcore.swagger on NuGet: 21 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 11.0.1, released November 12, 2026. Source repository
Its 11.0.0 release drops .NET 8 and 9. .NET end of life dates.
- From 10.0.0 to 11.0.0: 3 breaking changes in 1 version.
- From 7.0.0 to 11.0.0: 18 breaking changes in 4 versions.
swashbuckle.aspnetcore.swagger 11.0.0 breaking changes
- Behavior changed
Endpoints declaring several response types for one status code now produce anyOf schemas. Align declared response types with returned types. github.com - Behavior changed
Documents in OpenAPI 3.1 and 3.2 now write an examples array instead of a single example value. github.com - Behavior changed
Version 11 targets .NET 10 and .NET 11. Applications on .NET 8 or .NET 9 must stay on Swashbuckle.AspNetCore v10.x or upgrade their runtime. github.com
swashbuckle.aspnetcore.swagger 10.0.0 breaking changes
- Removed
WithOpenApi
Using Swashbuckle.AspNetCore together with the ASP.NET Core WithOpenApi() method is no longer supported, so code relying on it must change. github.com - Signature changed
AddSecurityRequirement
Calls to AddSecurityRequirement() must pass a Func<OpenApiDocument, OpenApiSecurityRequirement>. github.com - Signature changed
Swashbuckle.AspNetCore.Swagger.IAsyncSwaggerProvider.GetSwaggerAsync
Was System.Threading.Tasks.Task<Microsoft.OpenApi.Models.OpenApiDocument> GetSwaggerAsync(string documentName, string host, string basePath); now System.Threading.Tasks.Task<Microsoft.OpenApi.OpenApiDocument> GetSwaggerAsync(string... nuget.org - Signature changed
Swashbuckle.AspNetCore.Swagger.ISwaggerDocumentSerializer.SerializeDocument
Was void SerializeDocument(Microsoft.OpenApi.Models.OpenApiDocument document, Microsoft.OpenApi.Writers.IOpenApiWriter writer, Microsoft.OpenApi.OpenApiSpecVersion specVersion); now void SerializeDocument(Microsoft.OpenApi.OpenApiDocument... nuget.org - Signature changed
Swashbuckle.AspNetCore.Swagger.ISwaggerProvider.GetSwagger
Was Microsoft.OpenApi.Models.OpenApiDocument GetSwagger(string documentName, string host, string basePath); now Microsoft.OpenApi.OpenApiDocument GetSwagger(string documentName, string host, string basePath). nuget.org - Signature changed
Swashbuckle.AspNetCore.Swagger.SwaggerEndpointOptions.PreSerializeFilters
Was System.Collections.Generic.List<System.Action<Microsoft.OpenApi.Models.OpenApiDocument, Microsoft.AspNetCore.Http.HttpRequest>> PreSerializeFilters {get;}; now... nuget.org - Signature changed
Swashbuckle.AspNetCore.Swagger.SwaggerOptions.PreSerializeFilters
Was System.Collections.Generic.List<System.Action<Microsoft.OpenApi.Models.OpenApiDocument, Microsoft.AspNetCore.Http.HttpRequest>> PreSerializeFilters {get;}; now... nuget.org - Signature changed
Swashbuckle.AspNetCore.SwaggerGen.IRequestBodyAsyncFilter.ApplyAsync
The requestBody parameter now uses the Microsoft.OpenApi interface IOpenApiRequestBody instead of OpenApiRequestBody, so implementations must be updated. github.com
swashbuckle.aspnetcore.swagger 9.0.0 breaking changes
- Removed
Public members deprecated in earlier releases are removed. Code using them must switch to their replacements before upgrading. github.com - Removed
Only net8.0 and net9.0 are supported now. Projects targeting .NET Framework or netstandard2.0 must move to a supported target. github.com - Removed
--serializeasv2
The option was superseded by --openapiversion in 8.0.0. Use --openapiversion instead. github.com - Removed
Swashbuckle.AspNetCore.Swagger.SwaggerEndpointOptions.SerializeAsV2
Use OpenApiVersion instead. nuget.org - Removed
Swashbuckle.AspNetCore.Swagger.SwaggerOptions.SerializeAsV2
Use OpenApiVersion instead. nuget.org
swashbuckle.aspnetcore.swagger 8.0.0 breaking changes
- Removed
Swashbuckle.AspNetCore no longer targets net6.0, so projects on .NET 6 must move to a supported .NET version or stay on an older release. github.com - Behavior changed
Microsoft.OpenApi is updated to v1.6.23, which requires swagger-ui v5.19.0 or later; clear browser caches to load the new JavaScript files. github.com
swashbuckle.aspnetcore.swagger 7.0.0 breaking changes
- Removed
Support for older .NET (Core) versions is removed, so projects on those versions must upgrade to .NET 8 or later (or stay on 6). github.com - Removed
Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware
Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware was removed in Swashbuckle.AspNetCore.Swagger 7.0.0 nuget.org - Behavior changed
SwaggerIgnore
Properties marked with SwaggerIgnore are now also ignored when Newtonsoft.Json is used, which can change generated schemas for existing code. github.com
Related packages
- swashbuckle.aspnetcore
- swashbuckle.aspnetcore.swaggergen
- swashbuckle.aspnetcore.annotations
- swashbuckle.aspnetcore.redoc
- swashbuckle.aspnetcore.swaggerui
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.