File

libs/dtos/src/auth/request/ForgotPasswordResetRequest.dto.ts

Description

components: schemas: ForgotBodyDto: type: object required: - email properties: email: type: string example: email: john@doe.com

Extends

ValidateableDto

Index

Properties

Properties

email
Type : string
Decorators :
@ApiProperty()
@IsEmail()
Public validate
Type : function
Inherited from ValidateableDto
Defined in ValidateableDto:11
import { IsEmail } from 'class-validator'
import { ValidateableDto } from '../../generics/Validateable.dto'
import { ApiProperty } from '@nestjs/swagger'

/**
 * @openapi
 * components:
 *   schemas:
 *     ForgotBodyDto:
 *       type: object
 *       required:
 *         - email
 *       properties:
 *         email:
 *           type: string
 *       example:
 *         email: john@doe.com
 */
export class ForgotPasswordResetRequestDto extends ValidateableDto {
  @ApiProperty()
  @IsEmail()
  email!: string
}

results matching ""

    No results matching ""