Chore: add _id and name options to JSON Schemas (#25813)
<!-- This is a pull request template, you do not need to uncomment or remove the comments, they won't show up in the PR text. --> <!-- Your Pull Request name should start with one of the following tags [NEW] For new features [IMPROVE] For an improvement (performance or little improvements) in existing features [FIX] For bug fixes that affect the end-user [BREAK] For pull requests including breaking changes Chore: For small tasks Doc: For documentation --> <!-- Checklist!!! If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code. - I have read the Contributing Guide - https://github.com/RocketChat/Rocket.Chat/blob/develop/.github/CONTRIBUTING.md#contributing-to-rocketchat doc - I have signed the CLA - https://cla-assistant.io/RocketChat/Rocket.Chat - Lint and unit tests pass locally with my changes - I have added tests that prove my fix is effective or that my feature works (if applicable) - I have added necessary documentation (if applicable) - Any dependent changes have been merged and published in downstream modules --> ## Proposed changes (including videos or screenshots) <!-- CHANGELOG --> <!-- Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue below. This description will appear in the release notes if we accept the contribution. --> This pull request adds the `roomId` and `roomName` options for the Ajv JSON Schemas on the `packages/rest-typings/src/v1/channels/` and `packages/rest-typings/src/v1/dm/` folders. <!-- END CHANGELOG --> ## Issue(s) <!-- Link the issues being closed by or related to this PR. For example, you can use #594 if this PR closes issue number 594 --> ## Steps to test or reproduce <!-- Mention how you would reproduce the bug if not mentioned on the issue page already. Also mention which screens are going to have the changes if applicable --> ## Further comments <!-- If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc... --> Co-authored-by:Guilherme Gazzo <5263975+ggazzo@users.noreply.github.com>
Showing
- apps/meteor/app/api/server/v1/channels.ts 32 additions, 38 deletionsapps/meteor/app/api/server/v1/channels.ts
- packages/rest-typings/src/v1/channels/ChannelsGetAllUserMentionsByChannelProps.ts 19 additions, 5 deletions...c/v1/channels/ChannelsGetAllUserMentionsByChannelProps.ts
- packages/rest-typings/src/v1/channels/ChannelsHistoryProps.ts 107 additions, 45 deletions...ages/rest-typings/src/v1/channels/ChannelsHistoryProps.ts
- packages/rest-typings/src/v1/channels/ChannelsJoinProps.ts 29 additions, 11 deletionspackages/rest-typings/src/v1/channels/ChannelsJoinProps.ts
- packages/rest-typings/src/v1/channels/ChannelsKickProps.ts 27 additions, 10 deletionspackages/rest-typings/src/v1/channels/ChannelsKickProps.ts
- packages/rest-typings/src/v1/channels/ChannelsLeaveProps.ts 22 additions, 8 deletionspackages/rest-typings/src/v1/channels/ChannelsLeaveProps.ts
- packages/rest-typings/src/v1/channels/ChannelsMessagesProps.ts 18 additions, 11 deletions...ges/rest-typings/src/v1/channels/ChannelsMessagesProps.ts
- packages/rest-typings/src/v1/channels/ChannelsModeratorsProps.ts 20 additions, 7 deletions...s/rest-typings/src/v1/channels/ChannelsModeratorsProps.ts
- packages/rest-typings/src/v1/channels/ChannelsOpenProps.ts 64 additions, 15 deletionspackages/rest-typings/src/v1/channels/ChannelsOpenProps.ts
- packages/rest-typings/src/v1/channels/ChannelsSetAnnouncementProps.ts 27 additions, 10 deletions...t-typings/src/v1/channels/ChannelsSetAnnouncementProps.ts
- packages/rest-typings/src/v1/channels/ChannelsSetReadOnlyProps.ts 21 additions, 8 deletions.../rest-typings/src/v1/channels/ChannelsSetReadOnlyProps.ts
- packages/rest-typings/src/v1/channels/channels.ts 23 additions, 26 deletionspackages/rest-typings/src/v1/channels/channels.ts
- packages/rest-typings/src/v1/dm/DmCloseProps.ts 6 additions, 4 deletionspackages/rest-typings/src/v1/dm/DmCloseProps.ts
- packages/rest-typings/src/v1/dm/DmCreateProps.ts 3 additions, 1 deletionpackages/rest-typings/src/v1/dm/DmCreateProps.ts
- packages/rest-typings/src/v1/dm/DmDeleteProps.ts 3 additions, 1 deletionpackages/rest-typings/src/v1/dm/DmDeleteProps.ts
- packages/rest-typings/src/v1/dm/DmHistoryProps.ts 3 additions, 1 deletionpackages/rest-typings/src/v1/dm/DmHistoryProps.ts
- packages/rest-typings/src/v1/dm/DmKickProps.ts 3 additions, 1 deletionpackages/rest-typings/src/v1/dm/DmKickProps.ts
- packages/rest-typings/src/v1/dm/DmLeaveProps.ts 32 additions, 14 deletionspackages/rest-typings/src/v1/dm/DmLeaveProps.ts
Loading
Please register or sign in to comment