Installs into .claude/skills of the current project.
Are you the author of Nestjs Api Standards?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-nestjs-api-standards-4a05c916)
Decorate nested object or array properties with both `@ValidateNested()` and `@Type(() => NestedDto)`, then enable transformation and validation at the application boundary.
```ts
export class AddressDto {
@IsString()
street!: string;
}
export class CreateUserDto {
@ValidateNested()
@Type(() => AddressDto)
address!: AddressDto;
@ValidateNested({ each: true })
@Type(() => AddressDto)
addresses!: AddressDto[];
}
app.useGlobalPipes(new ValidationPipe({
transform: true,
whitelist: true,
forbidNonWhitelisted: true,
}));
```
Without `@Type`, `class-transformer` cannot instantiate the nested DTO reliably, so its validators may not run. Keep nested DTOs separate from ORM entities and map validated input before persistence.