Skip to content

Commit 3ecad62

Browse files
fix: address review comments
1 parent 08ac1ec commit 3ecad62

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/meteor/app/api/server/v1/roles.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,8 @@ const rolesRoutes = API.v1
276276
username: { type: 'string' },
277277
roles: { type: 'array', items: { type: 'string' } },
278278
},
279+
required: ['_id', 'username', 'roles'],
280+
additionalProperties: false,
279281
},
280282
},
281283
success: {
@@ -300,5 +302,5 @@ type RolesEndpoints = ExtractRoutesFromAPI<typeof rolesRoutes>;
300302

301303
declare module '@rocket.chat/rest-typings' {
302304
// eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-interface, @typescript-eslint/no-empty-object-type
303-
interface Endpoints extends RolesEndpoints {}
305+
interface Endpoints extends RolesEndpoints { }
304306
}

0 commit comments

Comments
 (0)