constLoginValidate={userName: {required: "kullanıcı adı zorunlu alandır.",},password: {min:6,required: "sifre zorunlu alandır."}}app.post("/login",validate(LoginValidate),(request,response)=>{returnresponse.json(request.body)})
constschemaUser={username: {required: 'username zorunlu alandır.'},password: {min: 10,max: 12,},email: {format: "email",required: 'Email zorunlu alandır.'},name:{omitempity:1},age:{type: "number"}}app.post("/users",validate(schemaUser),(request,response)=>{returnresponse.json(request.body)})