File

src/models/user/dto/update-user.dto.ts

Description

Describes the User fields that are updatable


Note that since this is a Partial of CreateUserDto, any field there is optional here

Index

Properties

Properties

Optional currentPassword
Type : string
Decorators :
@IsString()
@IsNotEmpty()
@IsOptional()

User current password

import { PartialType } from '@nestjs/swagger';
import { IsNotEmpty, IsOptional, IsString } from 'class-validator';
import { CreateUserDto } from './create-user.dto';

/** Describes the User fields that are updatable
 *
 * <br>Note that since this is a
 * <u>Partial of <a href="CreateUserDto.html">CreateUserDto</a></u>,
 * any field there is optional here
 */
export class UpdateUserDto extends PartialType(CreateUserDto) {
  /**
   * User current password
   * @example "abc123456"
   */
  @IsString()
  @IsNotEmpty()
  @IsOptional()
  currentPassword?: string;
}

results matching ""

    No results matching ""