add the heading to the inbound structure

This commit is contained in:
Sven Czarnian
2022-10-24 21:23:09 +02:00
parent 807b9f5db1
commit c080ddb987
3 changed files with 18 additions and 1 deletions

View File

@@ -19,10 +19,20 @@ export class FlightStateDto {
@Max(700)
groundSpeed: number;
@IsNotEmpty()
@ApiProperty({
description: 'The reported heading',
example: 200,
})
@IsInt()
@Min(0)
@Max(360)
heading: number;
@IsNotEmpty()
@ApiProperty({
description: 'The reported ground track',
example: 400,
example: 205,
})
@IsInt()
@Min(0)