Skip to content

Version Swashbuckle/Swagger remarks#35839

Merged
guardrex merged 3 commits intomainfrom
guardrex/blazor-version-swashbuckle-swagger
Jul 29, 2025
Merged

Version Swashbuckle/Swagger remarks#35839
guardrex merged 3 commits intomainfrom
guardrex/blazor-version-swashbuckle-swagger

Conversation

@guardrex
Copy link
Copy Markdown
Collaborator

@guardrex guardrex commented Jul 28, 2025

Fixes #35837

Swashbuckle is no good for 9.0 or later. We'll just implement OpenAPI documentation for the time being. The samples work was performed on dotnet/blazor-samples#565 and dotnet/blazor-samples#566. I've placed a long-range tracking item to consider adding a visualization UI/endpoint tester at #34434.

Wade, Tom ... I only need one review, so I'll merge this after either you take a look.


Internal previews

📄 File 🔗 Preview link
aspnetcore/blazor/hybrid/security/maui-blazor-web-identity.md aspnetcore/blazor/hybrid/security/maui-blazor-web-identity
aspnetcore/blazor/security/blazor-web-app-with-entra.md aspnetcore/blazor/security/blazor-web-app-with-entra
aspnetcore/blazor/security/blazor-web-app-with-oidc.md aspnetcore/blazor/security/blazor-web-app-with-oidc
aspnetcore/blazor/security/webassembly/standalone-with-identity/index.md aspnetcore/blazor/security/webassembly/standalone-with-identity/index

@guardrex guardrex mentioned this pull request Jul 28, 2025
96 tasks
@guardrex guardrex requested a review from Copilot July 28, 2025 15:35
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates Swagger/OpenAPI documentation references in Blazor security documentation to clarify version-specific implementation differences. The change addresses that Swashbuckle is not suitable for .NET 9.0 and later versions, recommending OpenAPI documentation implementation instead.

Key Changes

  • Add version-specific moniker ranges to differentiate OpenAPI documentation approaches between .NET versions
  • Replace specific Swagger UI references with generic OpenAPI documentation references for .NET 9.0+
  • Remove direct Swagger endpoint reference in favor of generic OpenAPI documentation guidance

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
aspnetcore/blazor/security/webassembly/standalone-with-identity/index.md Updated OpenAPI documentation references with version-specific guidance
aspnetcore/blazor/security/blazor-web-app-with-oidc.md Added moniker ranges to differentiate Swagger UI availability by .NET version
aspnetcore/blazor/security/blazor-web-app-with-entra.md Applied consistent version-specific OpenAPI documentation messaging
aspnetcore/blazor/hybrid/security/maui-blazor-web-identity.md Replaced direct Swagger endpoint reference with generic OpenAPI documentation guidance

@guardrex guardrex self-assigned this Jul 28, 2025
@guardrex guardrex requested review from tdykstra and wadepickett July 28, 2025 15:48
Copy link
Copy Markdown
Contributor

@wadepickett wadepickett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I don't see any issues.
@guardrex, consider updating the ms.date, even if it makes a difference of just a few months if you think the file is up to date.

@guardrex
Copy link
Copy Markdown
Collaborator Author

if you think the file is up to date.

draith2

"Tell Dexeter we've come full circle!" - First Decider Draith (Leonard Maguire), Dr. Who: Full Circle, ©1980 BBC

😄

We've had some shifting sediments over the years on the policy for updating the ms.date.

Originally, it was updated for every change, no matter how small (e.g., misspelled word). Later, it was updated when significant article changes occurred with the author deciding what level of change would trigger it, including if they felt the entire article should be considered or if it was more narrowly based on a set of major section changes.

If the policy is to change the date if we think the whole article is current, then we're just about back to updating it for every change, no matter how small.

Blazor docs for the last several years have had all of their article dates updated every release for that reason. I'm implying that everything is current every release. Therefore under my usual maintenance, the date is kept current (for the year) without my having to be bothered with it on every PR.

What is the current policy?

@guardrex guardrex merged commit e0e5ac3 into main Jul 29, 2025
3 checks passed
@guardrex guardrex deleted the guardrex/blazor-version-swashbuckle-swagger branch July 29, 2025 15:57
@guardrex guardrex mentioned this pull request Feb 6, 2026
67 tasks
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.

Version Swashbuckle/Swagger guidance in Blazor security sample articles

4 participants