fix(screenshotsSchema): make sizes field optional

This commit is contained in:
P. Reis 2024-11-13 17:19:11 -03:00
parent 5c45517db4
commit acee8784ee

View file

@ -32,7 +32,7 @@ const screenshotsSchema = z.array(z.object({
'play', 'play',
]).optional(), ]).optional(),
/** https://developer.mozilla.org/en-US/docs/Web/Manifest/screenshots#sizes */ /** https://developer.mozilla.org/en-US/docs/Web/Manifest/screenshots#sizes */
sizes: sizesSchema, sizes: sizesSchema.optional(),
/** Absolute URL. */ /** Absolute URL. */
src: z.string().url(), src: z.string().url(),
/** MIME type of the image. */ /** MIME type of the image. */