ZL-Asica / KumoAuth

A lightweight and efficient authentication system built with Cloudflare and Hono. 基于Cloudflare和Hono的高效身份认证系统。
MIT License
2 stars 0 forks source link

feat: OpenAPI reference auto generated by zod, Scalar for interactive #21

Closed ZL-Asica closed 1 week ago

ZL-Asica commented 1 week ago

Code:

  1. 4xx 5xx responses are now { { error: message }, statusCode }
  2. 2xx responses are now { { data_json }, 2xx }

New Structure:

  1. index.ts: entry changed to OpenAPIHono() from Hono()
  2. lib/db: All query.
  3. lib/helper: for zod json/response/response structures.

Test:

  1. register test.

Fix:

  1. register logic to check database query status from db feedback.

Dependencies:

  1. Use zod-openai middleware for doc generating. (at /doc)
  2. Use scalar for interactive API reference. (at /reference)
  3. Add vite and vite-tsconfig-path as dev-dependencies for alias resolving.
gitguardian[bot] commented 1 week ago

️✅ There are no secrets present in this pull request anymore.

If these secrets were true positive and are still valid, we highly recommend you to revoke them. Once a secret has been leaked into a git repository, you should consider it compromised, even if it was deleted immediately. Find here more information about risks.


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

github-actions[bot] commented 1 week ago

🧪 Test Results

Tests Passed: All tests passed successfully!


🎨 Prettier Format Check

Prettier: No formatting issues found!

🎨 Lint Check

Lint: No linting issues found!

github-actions[bot] commented 1 week ago

🧪 Test Results

Tests Passed: All tests passed successfully!


🎨 Prettier Format Check

Prettier: No formatting issues found!

🎨 Lint Check

Lint: No linting issues found!

github-actions[bot] commented 1 week ago

🧪 Test Results

Tests Passed: All tests passed successfully!


🎨 Prettier Format Check

Prettier: No formatting issues found!

🎨 Lint Check

Lint: No linting issues found!

github-actions[bot] commented 1 week ago

🧪 Test Results

Tests Passed: All tests passed successfully!


🎨 Prettier Format Check

Prettier: No formatting issues found!

🎨 Lint Check

Lint: No linting issues found!

github-actions[bot] commented 1 week ago

🧪 Test Results

Tests Passed: All tests passed successfully!


🎨 Prettier Format Check

Prettier: No formatting issues found!

🎨 Lint Check

Lint: No linting issues found!