introduce the runway definitions

This commit is contained in:
Sven Czarnian
2022-10-25 14:31:58 +02:00
parent 6378630027
commit cb9cd97c17
5 changed files with 73 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
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;
}