We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08ac1ec commit 3ecad62Copy full SHA for 3ecad62
apps/meteor/app/api/server/v1/roles.ts
@@ -276,6 +276,8 @@ const rolesRoutes = API.v1
276
username: { type: 'string' },
277
roles: { type: 'array', items: { type: 'string' } },
278
},
279
+ required: ['_id', 'username', 'roles'],
280
+ additionalProperties: false,
281
282
283
success: {
@@ -300,5 +302,5 @@ type RolesEndpoints = ExtractRoutesFromAPI<typeof rolesRoutes>;
300
302
301
303
declare module '@rocket.chat/rest-typings' {
304
// eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-interface, @typescript-eslint/no-empty-object-type
- interface Endpoints extends RolesEndpoints {}
305
+ interface Endpoints extends RolesEndpoints { }
306
}
0 commit comments