import { ApiPropertyOptional } from '@nestjs/swagger'; import { IsOptional, IsString, MaxLength } from 'class-validator'; /** * OCC ends a transfer request with fewer wagons than asked for. The note is * carried into the requester's notification — it is what tells them WHY the * yard could not give the rest. */ export class CloseShortTransferRequestDto { @ApiPropertyOptional({ description: 'Why the source yard cannot supply the remainder', }) @IsOptional() @IsString() @MaxLength(2000) note?: string; }