I need to validate a list of emails (array of strings) that are passed via POST. Using something like validation pipes and class-validator would be awesome (however in the official docs I only found examples of objects validation through DTOs and validation of primitive types but for GET requests).
Here is how my method looks like in the controller:
@Post()
async submit(@Body() emails: string[]) {
}