Vizzuality/landgriffon

View on GitHub
api/src/modules/authentication/dto/reset-password.dto.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString, Validate } from 'class-validator';
import { PasswordValidation } from 'decorators/password-validator.decorator';

export class ResetPasswordDto {
  @ApiProperty()
  @IsNotEmpty()
  @IsString()
  @Validate(PasswordValidation)
  readonly password: string;
}