mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
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:
commit
1baab0f868
1 changed files with 1 additions and 1 deletions
|
|
@ -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. */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue