From 580524b855587ac961d53b4fc97e7f604f3f9cf7 Mon Sep 17 00:00:00 2001 From: 01zulfi <85733202+01zulfi@users.noreply.github.com> Date: Wed, 13 May 2026 09:50:18 +0500 Subject: [PATCH] inbox: require non-empty source in inbox item (#98) --- Notesnook.Inbox.API/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Notesnook.Inbox.API/src/index.ts b/Notesnook.Inbox.API/src/index.ts index 3ffb1c5..8c03903 100644 --- a/Notesnook.Inbox.API/src/index.ts +++ b/Notesnook.Inbox.API/src/index.ts @@ -17,7 +17,7 @@ const RawInboxItemSchema = z.object({ notebookIds: z.array(z.string()).optional(), tagIds: z.array(z.string()).optional(), type: z.enum(["note"]), - source: z.string(), + source: z.string().min(1, "Source is required"), version: z.literal(1), content: z .object({