Skip to content

Conversation

@Yusuke4869
Copy link
Owner

No description provided.

Copilot AI review requested due to automatic review settings September 29, 2025 07:45
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 adds comprehensive OpenAPI 3.1 documentation to the API, replacing the basic Hono routing with OpenAPI-enabled routing and adding interactive documentation endpoints.

  • Migrates from basic Hono routing to OpenAPI-enabled routing with schema definitions
  • Adds interactive API documentation accessible via /doc and /doc/ui endpoints
  • Implements authentication middleware for documentation access with token-based security

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/route/api.ts Complete refactor to use OpenAPIHono with detailed route specifications and documentation endpoints
src/route/api.schema.ts New comprehensive Zod schemas for API validation and OpenAPI documentation
src/middleware/doc.ts New authentication middleware for securing documentation access
src/middleware/api.ts Simplified API key validation logic by combining conditions
deno.json Updated dependencies to include OpenAPI and Scalar documentation packages
.env.sample Added API_DOC_TOKENS environment variable configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Yusuke4869 Yusuke4869 merged commit 03a89ca into main Sep 29, 2025
4 checks passed
@Yusuke4869 Yusuke4869 deleted the feat/openapi branch September 29, 2025 23:07
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