From e944515faf261382de72bb288234139bbf5ff803 Mon Sep 17 00:00:00 2001 From: Minos Hemrich Date: Wed, 10 Apr 2024 17:00:23 +0200 Subject: [PATCH] set nav_status, colreg_rules_applied, and distance_to_target as optional --- src/maritime_schema/types/caga.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/maritime_schema/types/caga.py b/src/maritime_schema/types/caga.py index dc5d49c..16762ba 100644 --- a/src/maritime_schema/types/caga.py +++ b/src/maritime_schema/types/caga.py @@ -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],