diff --git a/api/assets/schemas.json b/api/assets/schemas.json index 3f760c3..9c34f96 100644 --- a/api/assets/schemas.json +++ b/api/assets/schemas.json @@ -713,7 +713,10 @@ "type": "object", "properties": { "target_user_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "target_type": { "type": [ diff --git "a/api/src/routes/channels/\043channel_id/invites.ts" "b/api/src/routes/channels/\043channel_id/invites.ts" index 2edb4fc..71612e3 100644 --- "a/api/src/routes/channels/\043channel_id/invites.ts" +++ "b/api/src/routes/channels/\043channel_id/invites.ts" @@ -8,7 +8,7 @@ const router: Router = Router(); export interface InviteCreateSchema { - target_user_id?: string; + target_user_id?: string | null; target_type?: string | null; validate?: string | null; // ? what is this max_age?: number;