Follow the solution of Afshin Rahmati. and add .name like bellow
export class SignUpDto{ @ApiProperty() @MinLength(5, { message: i18nValidationMessage('i18n.MIN', {message: 'err'}).name }) username:string; }