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!

325 B
Raw Blame
import { ApiProperty } from '@nestjs/swagger'
import { IsEmail, IsNotEmpty } from 'class-validator'

export class UserProfileDTO {
  @ApiProperty({ example: '[email protected]', required: true })
  @IsEmail()
  email: string

  @ApiProperty({ example: 'your_password123', required: true })
  @IsNotEmpty()
  password: string
}