mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-08-25 05:42:27 +00:00
11 lines
396 B
TypeScript
11 lines
396 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { IsNumber, Min } from 'class-validator';
|
|
import { i18nValidationMessage as i18n } from 'nestjs-i18n';
|
|
const MIN_FUND = 1;
|
|
export class FundGoalRequestDto {
|
|
@ApiProperty({ example: '200' })
|
|
@IsNumber({}, { message: i18n('validation.IsNumber', { path: 'general', property: 'goal.fundAmount' }) })
|
|
@Min(MIN_FUND)
|
|
fundAmount!: number;
|
|
}
|