#Content Collection

2 messages · Page 1 of 1 (latest)

sour scroll
#

How do i give the zod type if i've an object in my schema. It contains name:z.string()
discriminant:z.boolean()
if the discriminant is true than there should be another property in the object
property:z.string() how do i do that ?

royal cliffBOT
#

Hi @sour scroll. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: