NestJS · Validation · Junior · Debugging
Validate nested arrays of objects — requirements?
Short Interview Answer
@ValidateNested({ each: true }) and @Type(() => ItemDto) with transform enabled.
Detailed Explanation
Missing @Type is the most common bug. Add unit tests for nested payloads.
Common Mistake
Forgetting @Type on nested DTO properties.