Merge branch 'make-sizes-optional' into 'main'

fix(screenshotsSchema): make sizes field optional

See merge request soapbox-pub/ditto!585
This commit is contained in:
Alex Gleason 2024-11-14 16:17:04 +00:00
commit 1baab0f868

View file

@ -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. */