import { ApiProperty } from '@nestjs/swagger';
import { ArrayNotEmpty, IsArray, IsUUID } from 'class-validator';

export class AcceptIntercityBookingsDto {
  @ApiProperty({
    type: [String],
    description:
      'Waiting intercity booking ids to accept onto this train, in priority order',
  })
  @IsArray()
  @ArrayNotEmpty()
  @IsUUID('4', { each: true })
  bookingIds!: string[];
}
