import{zValidator as s}from"@hono/zod-validator";import{envConfig as i}from"../../config/env-config.js";function a(o){return s("json",o,(e,r)=>{if(!e.success)return i.isDevelopMode?r.json({success:!1,error:e.error.issues},400):r.text("Bad Request",400)})}export{a as jsonValidatorMiddleware};
