text: const Joi = require("joi");
  const validateRequest = require("../../../../_middlewares/validateRequest");
  
  exports.createSchema = (req, res, next) => {
      const schema = Joi.object({
          name: Joi.string().required(),
          menu_id: Joi.number().required(),
      });
      validateRequest(req, next, schema);
  };
  
  exports.updateSchema = (req, res, next) => {
      const schemaRules = {
          name: Joi.string().empty(""),
          menu_id: Joi.number().empty(""),
      };
  
      const schema = Joi.object(schemaRules);
  
      validateRequest(req, next, schema);
  };
  