This commit is contained in:
parent
b554e92e9f
commit
ca6ba2eb51
13 changed files with 15 additions and 15 deletions
|
|
@ -50,7 +50,7 @@ const linkSchema = z.object({
|
|||
const thumbnailSchema = ({ image }: SchemaContext) =>
|
||||
z.object({
|
||||
src: image(),
|
||||
alt: z.string(),
|
||||
alt: z.string().min(1, 'Thumbnail alt text must not be empty.'),
|
||||
});
|
||||
|
||||
const mediaSchema = ({ image }: SchemaContext) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue