Skip to content

Commit

Permalink
set nav_status, colreg_rules_applied, and distance_to_target as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
minhemdnv committed Apr 10, 2024
1 parent ab53424 commit e944515
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/maritime_schema/types/caga.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,17 +472,17 @@ class DetectedShip(BaseModelConfig):
examples=[45.0],
)
heading: Optional[float] = Field(None, ge=0, le=360, description="Initial ship heading in degrees", examples=[45.2])
nav_status: AISNavStatus = Field(None, description="AIS Navigational Status")
nav_status: Optional[AISNavStatus] = Field(None, description="AIS Navigational Status")

encounter_type: Optional[EncounterType] = Field(
None, description="COLREG encounter type", examples=["Overtaking stand-on"]
)
colreg_rules_applied: List[int] = Field(
colreg_rules_applied: Optional[List[int]] = Field(
None,
description="COLREG rules the system is applying to the vessel. Each item in the list must be of type `int` corresponding to the COLREG rule number",
examples=[[16, 17]],
)
distance_to_target: float = Field(
distance_to_target: Optional[float] = Field(
None,
description="Calculated distance from the own ship to the target vessel",
examples=[1900.2],
Expand Down

0 comments on commit e944515

Please sign in to comment.