I have implemented this code using JOI where the user has to send the userId and at least one of the keys from the body. How to implement the same using ZOD ??
params: Joi.object().keys({
userId: Joi.required().custom(objectId),
}),
body: Joi.object()
.keys({
name: Joi.string(),
email: Joi.string().email(),
password: Joi.string().custom(password),
})
.min(1),
};