title: custom object validation not working in nestjs DTO
body: <p>NestJs DTO does not validate object properly</p>
  <p>DTO class
  <a href="https://i.stack.imgur.com/ev57E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ev57E.png" alt="enter image description here" /></a></p>
  <p>Controller Class</p>
  <p><a href="https://i.stack.imgur.com/H0yn1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H0yn1.png" alt="enter image description here" /></a></p>
  <p>main.ts
  I also try adding <strong>{ whitelist: true } and {forbidNonWhitelisted: true } and { whitelist: true, forbidNonWhitelisted: true }</strong> but no luck</p>
  <p><a href="https://i.stack.imgur.com/kgiZT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kgiZT.png" alt="enter image description here" /></a></p>
  <p>This is how I call my API and this type response is ok</p>
  <p><a href="https://i.stack.imgur.com/4HbXR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4HbXR.png" alt="enter image description here" /></a></p>
  <p>If I passed the wrong properties it not throw an error...This is the issue, It should be only working if I pass valid properties.
  <a href="https://i.stack.imgur.com/wFJIv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wFJIv.png" alt="enter image description here" /></a></p>
  <p>Thanks.</p>