I have the following DTO class in my project:
import { IsNotEmpty, IsString } from "class-validator";
export class CreateDomainDTO {
@IsString()
codigo_website: string;
@IsString()
website_name: string
}
I have NestJs default validation pipe applied for my entire project: