Click in order · NestJS course · Module 10: Data Validation
Installing Validation Tools
Arrange the steps for installing and configuring validation in NestJS:
Items to click
- npm install class-validator class-transformer
- Add decorators to the DTO class
- Use the DTO in a controller with @Body()
- Configure ValidationPipe in main.ts
You can check the correct answer by solving this task in the CodeWorlds game.