NestJS · Validation · Fresh / Intern · Concept
How does ValidationPipe + class-validator validate bodies?
Short Interview Answer
Transforms plain objects to DTO classes then runs decorators; throws BadRequest on failures.
Detailed Explanation
Requires transform for nested types. Customize exceptionFactory for error shape.