api/src/modules/users/dto/update.user-password.ts
import { ApiProperty } from '@nestjs/swagger';
import { IsString, MaxLength } from 'class-validator';
export class UpdateUserPasswordDTO {
@ApiProperty()
@IsString()
currentPassword!: string;
@ApiProperty()
@IsString()
@MaxLength(72)
newPassword!: string;
}