Files
edr-platform/apps/edr-freight-api/src/modules/trains/dto/assign-train-wagons.dto.ts
Marshal 6d0cf50b4d train
2026-07-14 11:06:49 +00:00

15 lines
409 B
TypeScript

import { ApiProperty } from '@nestjs/swagger';
import { ArrayMinSize, IsArray, IsUUID } from 'class-validator';
export class AssignTrainWagonsDto {
@ApiProperty({
type: [String],
format: 'uuid',
description: 'Wagons to append to the consist, in order. Each must be AVAILABLE in the train\'s yard.',
})
@IsArray()
@ArrayMinSize(1)
@IsUUID('all', { each: true })
wagonIds!: string[];
}