That's the error thrown by class-validator. Here is the code for my dto:
export class UpdateEntryBodyDto {
@ApiProperty()
@Type(() => Number)
@IsNumber()
id: number;
@ApiProperty()
@IsString()
@IsOptional()
@Validate(IsUniqueEntryTitle)
title?: string;
}
I tried a few more different configurations but I'm getting about the same damn error. I'm totally discombobulated by this error, can't figure out what the hell is wrong with this code, I do it like it's recommended here but to no avail...
Can anyone help?