xxxxxxxxxx
import { z } from 'zod'
const toy = z.object({
name: z.number().optional(),
color: z.string().optional(),
})
.refine(schema => schema.color ? !!schema.name : true, {
message: 'name is required when you send color on request'
})