From 5ebb99ff0a72a4a51bfe5eda77a6fddb452a3111 Mon Sep 17 00:00:00 2001 From: Evian-Zhang Date: Sat, 11 Oct 2025 10:28:14 +0800 Subject: [PATCH 1/2] =?UTF-8?q?Replace=20=E2=80=93=20with=20-?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/session.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/session.rs b/src/controllers/session.rs index 3aa7e76f225..7c95e29a7c7 100644 --- a/src/controllers/session.rs +++ b/src/controllers/session.rs @@ -76,8 +76,8 @@ pub struct AuthorizeQuery { /// /// ## Query Parameters /// -/// - `code` – temporary code received from the GitHub API **(Required)** -/// - `state` – state parameter received from the GitHub API **(Required)** +/// - `code` - temporary code received from the GitHub API **(Required)** +/// - `state` - state parameter received from the GitHub API **(Required)** #[utoipa::path( get, path = "/api/private/session/authorize", From 3c239a768628431e93f3385b5694e65e154fc5b8 Mon Sep 17 00:00:00 2001 From: Evian-Zhang Date: Sat, 11 Oct 2025 10:47:09 +0800 Subject: [PATCH 2/2] Fix snapshot --- .../crates_io__openapi__tests__openapi_snapshot-2.snap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snapshots/crates_io__openapi__tests__openapi_snapshot-2.snap b/src/snapshots/crates_io__openapi__tests__openapi_snapshot-2.snap index 6c7e90967b9..861164c4f8f 100644 --- a/src/snapshots/crates_io__openapi__tests__openapi_snapshot-2.snap +++ b/src/snapshots/crates_io__openapi__tests__openapi_snapshot-2.snap @@ -1422,7 +1422,7 @@ expression: response.json() }, "/api/private/session/authorize": { "get": { - "description": "This route is called from the GitHub API OAuth flow after the user accepted or rejected\nthe data access permissions. It will check the `state` parameter and then call the GitHub API\nto exchange the temporary `code` for an API token. The API token is returned together with\nthe corresponding user information.\n\nsee \n\n## Query Parameters\n\n- `code` – temporary code received from the GitHub API **(Required)**\n- `state` – state parameter received from the GitHub API **(Required)**", + "description": "This route is called from the GitHub API OAuth flow after the user accepted or rejected\nthe data access permissions. It will check the `state` parameter and then call the GitHub API\nto exchange the temporary `code` for an API token. The API token is returned together with\nthe corresponding user information.\n\nsee \n\n## Query Parameters\n\n- `code` - temporary code received from the GitHub API **(Required)**\n- `state` - state parameter received from the GitHub API **(Required)**", "operationId": "authorize_session", "responses": { "200": {