Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Remove OpenAPI/Swagger documentation and UI components#264

Merged
raimohanska merged 2 commits into
masterfrom
copilot/fix-05f41f5e-f29e-41ab-b757-2bbe34aa6a93
Sep 1, 2025
Merged

Remove OpenAPI/Swagger documentation and UI components#264
raimohanska merged 2 commits into
masterfrom
copilot/fix-05f41f5e-f29e-41ab-b757-2bbe34aa6a93

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Sep 1, 2025

Removes all OpenAPI and Swagger-related components from the ourboard codebase as requested in issue #263.

Changes Made

Deleted Files

  • backend/src/api/api-routes.openapi.ts - Complete OpenAPI specification (1,468 lines)
  • backend/src/openapi.ts - OpenAPI document configuration

Updated Files

  • backend/src/express-server.ts - Removed Swagger UI integration:

    • Removed swagger-ui-express import
    • Removed openapiDoc import
    • Removed /api-docs endpoint setup
  • backend/package.json - Cleaned up dependencies and scripts:

    • Removed dependencies: openapi-types, swagger-ui-express, typera-openapi
    • Removed dev dependency: @types/swagger-ui-express
    • Removed scripts: apidocs, apidocs:dev
    • Updated dev script to remove apidocs:dev parallel execution
    • Updated lint script to remove OpenAPI validation
  • package.json - Removed root-level apidocs script

Impact

  • Bundle size reduction: ~1.8MB smaller build output (34255kB → 32470kB)
  • No functional changes: All API endpoints remain fully functional
  • Clean build: Project builds and lints successfully with no remaining OpenAPI/Swagger references
  • Dependencies cleaned: Unused packages removed from lockfile

The API routes continue to work exactly as before - only the documentation generation and Swagger UI have been removed.

This pull request was created as a result of the following prompt from Copilot chat.

Remove all mentions of OpenAPI, Swagger, and related documentation or UI from the ourboard codebase as requested in issue #263. This includes deleting OpenAPI doc files, Swagger UI integrations, configs, and any code or documentation referencing them. Ensure there are no references remaining and the project builds and runs cleanly after removal.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI changed the title [WIP] Remove OpenAPI docs and Swagger UI from codebase Remove OpenAPI/Swagger documentation and UI components Sep 1, 2025
Copilot AI requested a review from raimohanska September 1, 2025 08:35
Copy link
Copy Markdown
Owner

@raimohanska raimohanska left a comment

Choose a reason for hiding this comment

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

LGTM

@raimohanska raimohanska marked this pull request as ready for review September 1, 2025 08:53
@raimohanska raimohanska merged commit b0a1947 into master Sep 1, 2025
3 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.

2 participants