chore: add SpeakerDeck and video validation
This commit is contained in:
parent
17803091cf
commit
61d329e87c
8 changed files with 17 additions and 10 deletions
|
|
@ -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(),
|
||||
}),
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue