Skip to content

fix: replace Swashbuckle with built-in ASP.NET Core OpenAPI#9

Merged
phmatray merged 1 commit into
mainfrom
fix/replace-swashbuckle-with-builtin-openapi
Feb 28, 2026
Merged

fix: replace Swashbuckle with built-in ASP.NET Core OpenAPI#9
phmatray merged 1 commit into
mainfrom
fix/replace-swashbuckle-with-builtin-openapi

Conversation

@phmatray

Copy link
Copy Markdown
Contributor

Summary

  • Remove Swashbuckle.AspNetCore which is incompatible with .NET 10
  • Add Microsoft.AspNetCore.OpenApi (10.0.3) — the built-in OpenAPI support in ASP.NET Core 10
  • Replace AddSwaggerGen/UseSwagger/UseSwaggerUI with AddOpenApi/MapOpenApi
  • Remove unused Microsoft.OpenApi.Models using directive

Test plan

  • dotnet build --configuration Release succeeds with 0 errors, 0 warnings
  • CI pipeline passes
  • OpenAPI document accessible at /openapi/v1.json

Swashbuckle.AspNetCore is incompatible with .NET 10. Replace it with the
built-in Microsoft.AspNetCore.OpenApi package:

- Remove Swashbuckle.AspNetCore package reference
- Add Microsoft.AspNetCore.OpenApi 10.0.3
- Replace AddSwaggerGen/UseSwagger/UseSwaggerUI with AddOpenApi/MapOpenApi
- Remove unused Microsoft.OpenApi.Models using directive
@phmatray
phmatray merged commit f1aa039 into main Feb 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant