#Content Collection
2 messages · Page 1 of 1 (latest)
2 messages · Page 1 of 1 (latest)
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 ?