src/modules/auth/dtos/user-login.dto.ts
Properties |
| Readonly email |
Type : string
|
Decorators :
@IsEmail()
|
|
Defined in src/modules/auth/dtos/user-login.dto.ts:8
|
| Readonly password |
Type : string
|
Decorators :
@IsString()
|
|
Defined in src/modules/auth/dtos/user-login.dto.ts:13
|
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;
}