mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-11-26 00:24:54 +00:00
10 lines
392 B
TypeScript
10 lines
392 B
TypeScript
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;
|
|
}
|