import { ApiProperty } from '@nestjs/swagger'; import { IsOptional, IsString } from 'class-validator'; import { i18nValidationMessage as i18n } from 'nestjs-i18n'; export class RejectionMoneyRequestDto { @ApiProperty({ example: 'You are spending too much' }) @IsString({ message: i18n('validation.string', { property: 'rejectionReason' }) }) @IsOptional() rejectionReason!: string; }