From acee8784eebc479ec9d6f9f670f2e02e5dc4c427 Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Wed, 13 Nov 2024 17:19:11 -0300 Subject: [PATCH] fix(screenshotsSchema): make sizes field optional --- src/schemas/nostr.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/schemas/nostr.ts b/src/schemas/nostr.ts index 46f68a34..4e8f917d 100644 --- a/src/schemas/nostr.ts +++ b/src/schemas/nostr.ts @@ -32,7 +32,7 @@ const screenshotsSchema = z.array(z.object({ 'play', ]).optional(), /** https://developer.mozilla.org/en-US/docs/Web/Manifest/screenshots#sizes */ - sizes: sizesSchema, + sizes: sizesSchema.optional(), /** Absolute URL. */ src: z.string().url(), /** MIME type of the image. */