Put in order · NestJS course · Module 10: Data Validation

Stages of Building a Validation System

Arrange the stages of building a complete validation system in NestJS:

Items to put in order

  • Create DTO classes with decorators
  • Install class-validator and class-transformer
  • Configure the global ValidationPipe
  • Use DTOs in controllers with @Body()
  • Add custom validators (optional)

You can check the correct answer by solving this task in the CodeWorlds game.