File

src/modules/auth/dtos/user-login.dto.ts

Index

Properties

Properties

Readonly email
Type : string
Decorators :
@IsEmail()
@IsNotEmpty()
@ApiProperty()
Readonly password
Type : string
Decorators :
@IsString()
@IsNotEmpty()
@ApiProperty()
import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsEmail, IsString } from 'class-validator';

export class UserLoginDto {
  @IsEmail()
  @IsNotEmpty()
  @ApiProperty()
  readonly email: string;

  @IsString()
  @IsNotEmpty()
  @ApiProperty()
  readonly password: string;
}

result-matching ""

    No results matching ""