import { ApiProperty } from '@nestjs/swagger'; import { Type } from 'class-transformer'; import { IsInt, Min } from 'class-validator'; import { ValidateBoolean } from 'src/validation'; export class SystemConfigTrashDto { @ValidateBoolean() enabled!: boolean; @IsInt() @Min(0) @Type(() => Number) @ApiProperty({ type: 'integer' }) days!: number; }