fix: make alt text mandatory on image

Signed-off-by: Filipe Medeiros <hello@filipesm.eu>
This commit is contained in:
Filipe Medeiros 2023-04-15 16:31:57 +01:00
parent 7566a7f2b2
commit c527b818f4
Signed by: filipe
GPG key ID: 9533BD5467CC1E78

View file

@ -83,6 +83,12 @@ const blogPost = defineType({
type: 'array',
of: [{type: 'block'}],
},
{
title: 'Alt text',
name: 'altText',
type: 'string',
validation: (r) => r.required(),
},
],
},
],