Skip to content

Commit

Permalink
Merge pull request #25 from dnv-opensource/24-fix-validationerror-whe…
Browse files Browse the repository at this point in the history
…n-data-is-none

make the data optional
  • Loading branch information
minhemdnv authored Mar 18, 2024
2 parents 3faaaa7 + d452171 commit a958c69
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 a958c69

Please sign in to comment.