Skip to content

Commit

Permalink
At trafficSituation, description can be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
StanleyYoo committed Feb 15, 2024
1 parent 0c26191 commit 13e8f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/maritime_schema/schema/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class TargetShip(Ship):

class TrafficSituation(BaseModel):
title: str = Field(description = 'The title of the traffic situation', examples = ['overtaking_18'], omit_default=True)
description: str = Field(description = 'A description of the traffic situation', examples = ['Crossing situation with 3 target vessels in the Oslofjord'])
description: Optional[str] = Field(None, description='A description of the traffic situation', examples=['Crossing situation with 3 target vessels in the Oslofjord'])
start_time: Optional[datetime] = Field(None, title = 'Situation starting time', description = 'Starting time of the situation in `ISO 8601` format `YYYY-MM-DDThh:mm:ssZ`', examples = [datetime.now()])
own_ship: OwnShip = Field(title = "Own Ship data", description='Own Ship data', examples = [ship_example])
target_ships: List[TargetShip] = Field(None, title = "Target Ship data", description='Target Ship data', examples = [[ship_example]])
Expand Down

0 comments on commit 13e8f03

Please sign in to comment.