Code snippet from a NestJS project demonstrating a DTO class with validation using class-validator decorators.
A screenshot of a NestJS TypeScript file named `address.dto.ts` showing code with class validation decorators `@IsString` and `@IsNotEmpty` for `street` and `city` properties.
Quality Assured by Worksheets Library Team
Reviewed for educational accuracy and age-appropriateness
ID: #689493