File

src/auth/dto/login.dto.ts

Index

Properties

Properties

email
Type : string
Decorators :
@ApiProperty({example: 'admin@fleetcommand.com'})
@IsEmail()
@IsNotEmpty()
password
Type : string
Decorators :
@ApiProperty({example: 'demo123'})
@IsString()
@IsNotEmpty()
@MinLength(1)
import { IsEmail, IsNotEmpty, IsString, MinLength } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class LoginDto {
  @ApiProperty({ example: 'admin@fleetcommand.com' })
  @IsEmail()
  @IsNotEmpty()
  email: string;

  @ApiProperty({ example: 'demo123' })
  @IsString()
  @IsNotEmpty()
  @MinLength(1)
  password: string;
}

results matching ""

    No results matching ""