import { ArrayMaxSize, IsArray, IsEmail } from 'class-validator'

// Replace a distribution list's recipients.
export class UpdateListDto {
  @IsArray()
  @ArrayMaxSize(1000)
  @IsEmail({}, { each: true })
  recipients!: string[]
}
