introduce the runway definitions
This commit is contained in:
18
src/airport/dto/runway.dto.ts
Normal file
18
src/airport/dto/runway.dto.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user