chore: add SpeakerDeck and video validation

This commit is contained in:
Oliver Davies 2023-04-09 20:59:07 +01:00
parent 17803091cf
commit 61d329e87c
8 changed files with 17 additions and 10 deletions

View file

@ -29,9 +29,16 @@ const talkCollection = defineCollection({
name: z.string(),
online: z.boolean().optional(),
})),
speakerdeck: z.object({
id: z.string(),
ratio: z.string(),
url: z.string(),
}).optional(),
title: z.string(),
// TODO: add SpeakerDeck
// TODO: add Video
video: z.object({
id: z.string(),
type: z.enum(['vimeo', 'youtube']),
}).or(z.null()).optional(),
}),
});