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

ValidationPipe Restrictiveness Levels

Arrange the ValidationPipe modes from least to most restrictive:

Items to put in order

  • ValidationPipe() - basic validation
  • No ValidationPipe - no validation
  • whitelist + forbidNonWhitelisted - rejecting requests
  • whitelist: true - removing unknown fields

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