Skip to content

Commit

Permalink
make the data optional
Browse files Browse the repository at this point in the history
  • Loading branch information
minhemdnv committed Mar 18, 2024
1 parent 3faaaa7 commit d452171
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/maritime_schema/types/caga.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ class Waypoint(BaseModelConfig):
turn_radius: Optional[float] = Field(
None, description="Orthodrome turn radius as defined in RTZ format", examples=[200]
)
data: Data = Field(None, description="A `Data` object that includes `speed`, `course`, and `heading` data points")
data: Optional[Data] = Field(
None, description="A `Data` object that includes `speed`, `course`, and `heading` data points"
)


class Ship(BaseModelConfig):
Expand Down

0 comments on commit d452171

Please sign in to comment.