Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

417 B
Raw Blame
import { ApiProperty } from '@nestjs/swagger'
import { IsString, IsOptional, IsNotEmpty } from 'class-validator'

export class DeleteSelfDTO {
  @ApiProperty({
    example: 'hunter2',
    required: true,
  })
  @IsString()
  @IsNotEmpty()
  password: string

  @ApiProperty({
    example: 'I want to delete my account because ... and ...',
    required: false,
  })
  @IsOptional()
  @IsString()
  feedback: string
}