Skip to content

Conversation

@padfoot044
Copy link

@padfoot044 padfoot044 commented Nov 19, 2025

  • 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 finished reviewing on behalf of padfoot044 November 19, 2025 07:07
Copy link

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 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 finished reviewing on behalf of padfoot044 November 19, 2025 07:33
Copy link

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

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

@padfoot044 padfoot044 requested a review from Copilot November 19, 2025 07:51
Copilot finished reviewing on behalf of padfoot044 November 19, 2025 07:53
Copy link

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

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

@padfoot044
Copy link
Author

@ardalis , please review

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