Class Waliator enum
class Whateve {
@IsEnum(EnumEntity)
property: Type;
}
DevPedrada
class Whateve {
@IsEnum(EnumEntity)
property: Type;
}
export class UserDto {
@IsEmail()
readonly email: string;
@IsOptional()
@IsEnum(Permissions, { each: true })
readonly permissions: Permissions[]; <- How to validate this?
}