src/auth/dto/login.dto.ts
Properties |
Type : string
|
Decorators :
@ApiProperty({example: 'admin@fleetcommand.com'})
|
|
Defined in src/auth/dto/login.dto.ts:8
|
| password |
Type : string
|
Decorators :
@ApiProperty({example: 'demo123'})
|
|
Defined in src/auth/dto/login.dto.ts:14
|
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;
}