Question · NestJS course · Module 10: Data Validation

The whitelist Option

What does the whitelist: true option do in ValidationPipe?

Answer options

  • Adds a white background to JSON responses
  • Creates a list of allowed IP addresses
  • Automatically removes fields without validation decorators from incoming data
  • Disables validation for selected endpoints

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