Skip to content

fix(openapi): document recover account endpoint at its registered path - #550

Merged
alexmerlin merged 1 commit into
dotkernel:7.0from
dq042000:fix/issue-546-recover-account-path
Sep 22, 2026
Merged

alexmerlin merged 1 commit into
dotkernel:7.0from
dq042000:fix/issue-546-recover-account-path

Conversation

@dq042000

@dq042000 dq042000 commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Fixes #546

The OpenAPI annotation for PostUserAccountRecoverHandler used /account/recover-identity,
but the route is registered as /user/account/recover (RoutesDelegator.php).
Changed the annotation path to match the route.

Copilot AI lite review requested due to automatic review settings September 22, 2026 07:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The change is a straightforward documentation-path correction that matches the existing registered route and current functional test usage.

Review effort: Lite
Findings: None

What changed in this PR

This PR fixes an OpenAPI documentation drift in the User module by updating the OA\Post annotation for PostUserAccountRecoverHandler so the documented endpoint path matches the actual registered route.

Changes:

  • Update the OpenAPI path for the account recovery endpoint from /account/recover-identity to /user/account/recover.
  • Align generated OpenAPI output with the existing router configuration and functional test coverage.
File Description
src/​User/​src/​OpenAPI.php Updates the OA\Post annotation path to match the registered /user/account/recover route.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@dq042000
dq042000 force-pushed the fix/issue-546-recover-account-path branch from 032cd89 to 0f88f72 Compare September 22, 2026 07:19
The OA\Post annotation for PostUserAccountRecoverHandler pointed to
/account/recover-identity, which is not a registered route. Use
/user/account/recover to match RoutesDelegator.

Fixes dotkernel#546

Signed-off-by: MikeCi <dq042000@gmail.com>
@dq042000
dq042000 force-pushed the fix/issue-546-recover-account-path branch from 0f88f72 to ba84334 Compare September 22, 2026 07:20
@alexmerlin

Copy link
Copy Markdown
Member

Thanks @dq042000 👍

@alexmerlin
alexmerlin merged commit 3b5d001 into dotkernel:7.0 Sep 22, 2026
11 of 17 checks passed
@dq042000
dq042000 deleted the fix/issue-546-recover-account-path branch September 22, 2026 10:14
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.

Documented path does not match the registered route

3 participants