runway.dto.ts 423 B

123456789101112131415161718
  1. import { IsNotEmpty } from 'class-validator';
  2. import { ApiProperty } from '@nestjs/swagger';
  3. import { CoordinateDto } from '../../generic/dto/coordinate.dto';
  4. export class RunwayDto {
  5. @IsNotEmpty()
  6. @ApiProperty({
  7. description: 'The identifier of the runway',
  8. example: '25L',
  9. })
  10. identifier: string;
  11. @IsNotEmpty()
  12. @ApiProperty({
  13. description: 'The runway threshold',
  14. })
  15. altitude: CoordinateDto;
  16. }