refactor(api): migrate users.getUsernameSuggestion endpoint to openapi with ajv validation#39703
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
🦋 Changeset detectedLatest commit: 36e7d3d The changes in this PR will be included in the next version bump. This PR includes changesets to release 41 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughThis change migrates the users.getUsernameSuggestion endpoint to use OpenAPI and AJV compatible structure. The endpoint is consolidated into a centralized endpoints collection instead of existing as a standalone declaration, with associated type definitions updated accordingly. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Suggested labels
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
1 issue found across 3 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="packages/rest-typings/src/v1/users.ts">
<violation number="1" location="packages/rest-typings/src/v1/users.ts:252">
P2: `users.getUsernameSuggestion` was removed from REST typings even though the endpoint still exists, causing `@rocket.chat/rest-typings` to be out of sync with the actual API contract.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
Summary
This PR migrates the
users.getUserNameSuggestionendpoint from the deprecatedAPI.v1.addRouteformat to the new declarative API route format.Changes
API.v1.addRoutewithAPI.v1.postSuccessful Runs
Issues
RocketChat/Rocket.Chat-Open-API#150
Summary by CodeRabbit