#Cannot use an array of enum as the schema for a content collection
3 messages · Page 1 of 1 (latest)
No-one around right now?
It looks like no-one has responded to your question yet. People might not be available right now or don’t know how to answer your question. Want an answer while you wait? Try asking our experimental bot in #1095492539085230272.
what version of Astro are you using? I'm not able to replicate the type error locally with this ([email protected]):
const tags = defineCollection({
type: 'data',
schema: z.array(z.enum(['a', 'b', 'c']))
})