libs/dtos/src/auth/request/ConfirmationCode.dto.ts
Properties |
Public Optional code |
Type : string
|
Decorators :
@ApiProperty()
|
Public Optional email |
Type : string
|
Decorators :
@ApiProperty()
|
import { IsNotEmpty, IsString } from 'class-validator'
import { ApiProperty } from '@nestjs/swagger'
export class ConfirmationCodeDto {
@ApiProperty()
@IsString()
@IsNotEmpty()
public code?: string
@ApiProperty()
@IsString()
@IsNotEmpty()
public email?: string
}