Skip to content

Enable Swagger/Scalar Documentation - #982

Merged
ardalis merged 4 commits into
ardalis:mainfrom
padfoot044:add-swagger
Dec 1, 2025
Merged

ardalis merged 4 commits into
ardalis:mainfrom
padfoot044:add-swagger

Conversation

@padfoot044

@padfoot044 padfoot044 commented Nov 19, 2025 •

Copy link
Copy Markdown
Contributor
  • Keep the FastEndpoints swagger document metadata (title/version/description) configured for clarity.

Copilot AI review requested due to automatic review settings November 19, 2025 07:04
@padfoot044 padfoot044 changed the title Enable Swagger Enable Swagger/Scalar Documentation in All Environments Nov 19, 2025

Copilot AI left a comment

Copy link
Copy Markdown

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 enables Swagger UI and Scalar API Reference to be available in all environments, not just Development. The OpenAPI documentation endpoints are moved out of the environment-specific conditional block, making API documentation accessible regardless of the hosting environment.

Key Changes:

  • Added OpenAPI document metadata (title, version, description) to improve API documentation
  • Removed environment-based conditional that restricted Swagger UI to Development only
  • Configured explicit paths for Swagger UI (/swagger) and OpenAPI spec (/openapi/{documentName}.json)

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/Clean.Architecture.Web/Program.cs Added document settings configuration for OpenAPI specification including title, version, and description
src/Clean.Architecture.Web/Configurations/MiddlewareConfig.cs Removed Development environment check for Swagger/Scalar UIs and added explicit path configurations for both documentation tools

@padfoot044
padfoot044 requested a review from Copilot November 19, 2025 07:31
@padfoot044 padfoot044 changed the title Enable Swagger/Scalar Documentation in All Environments Enable Swagger/Scalar Documentation Nov 19, 2025

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

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

@padfoot044

Copy link
Copy Markdown
Contributor Author

@ardalis , please review

@ardalis
ardalis merged commit 5770078 into ardalis:main Dec 1, 2025
4 checks 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.

3 participants