Files
aman-backend/src/airport/dto/runway.dto.ts
2022-10-25 14:31:58 +02:00

19 lines
423 B
TypeScript

import { IsNotEmpty } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
import { CoordinateDto } from '../../generic/dto/coordinate.dto';
export class RunwayDto {
@IsNotEmpty()
@ApiProperty({
description: 'The identifier of the runway',
example: '25L',
})
identifier: string;
@IsNotEmpty()
@ApiProperty({
description: 'The runway threshold',
})
altitude: CoordinateDto;
}