import { ApiPropertyOptional } from '@nestjs/swagger'; import { IsArray, IsOptional, IsUUID } from 'class-validator'; export class AdjustScheduleConsistDto { @ApiPropertyOptional({ type: [String], format: 'uuid', description: "AVAILABLE wagons from the train's current yard to couple onto the built train (blocked when they push gross weight or length past the locomotive limits incl. tolerance).", }) @IsOptional() @IsArray() @IsUUID('all', { each: true }) addWagonIds?: string[]; @ApiPropertyOptional({ type: [String], format: 'uuid', description: 'Free (unloaded) wagons to detach permanently from the built train — e.g. trimming tare when gross weight exceeds the pull limit.', }) @IsOptional() @IsArray() @IsUUID('all', { each: true }) removeWagonIds?: string[]; }