79099916

Date: 2024-10-17 21:51:41
Score: 2
Natty:
Report link

I had same problem but got it fixed by doing:

import {
 ValidateNested,
 IsDefined,
 IsNotEmptyObject,
} from 'class-validator';

import { Type } from 'class-transformer';
import { ApiProperty } from '@nestjs/swagger';

@IsDefined()
@IsNotEmptyObject()
@ValidateNested()
@ApiProperty()
@Type(() => AddressDto)
address: AddressDto;

Using this answer stackoverflow.com/a/53685045/4694994

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Friday Onojah