import { ApiProperty } from '@nestjs/swagger'; import { IsInt, Max, Min } from 'class-validator'; export class AcceptContractDto { @ApiProperty({ description: 'How many days the contract stays valid, counted from the accept date. ' + 'The contract is valid from now through now + validityDays.', minimum: 1, maximum: 3650, example: 365, }) @IsInt() @Min(1) @Max(3650) validityDays!: number; }