Skip to content

fix: enabled flag got ignored#16

Merged
sjorobekov merged 2 commits intomainfrom
fix_enable_flag
Mar 20, 2026
Merged

fix: enabled flag got ignored#16
sjorobekov merged 2 commits intomainfrom
fix_enable_flag

Conversation

@sjorobekov
Copy link
Collaborator

No description provided.

@sjorobekov sjorobekov marked this pull request as ready for review March 19, 2026 14:46
Copilot AI review requested due to automatic review settings March 19, 2026 14:46
Copy link
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 fixes the enabled configuration option in the OpenAPI registry so that disabling the registry actually prevents route registration and Swagger UI mounting.

Changes:

  • Add an early return in registerRoutes when config.enabled === false.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@sjorobekov sjorobekov requested a review from imsitnikov March 20, 2026 06:46
@sjorobekov sjorobekov merged commit ef0667c into main Mar 20, 2026
2 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