Skip to content

Commit 57463a5

Browse files
author
Paul Duncan
committed
Make 'labels' field optional in Event and BroadcastEvent models.
1 parent aac6d81 commit 57463a5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

predicthq/endpoints/v1/broadcasts/schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class BroadcastEvent(BaseModel):
4141
event_id: str
4242
title: str
4343
category: str
44-
labels: List[str]
44+
labels: Optional[List[str]] = None
4545
dates: BroadcastEventDates
4646
location: BroadcastEventLocation
4747
entities: List[BroadcastEventEntities]

predicthq/endpoints/v1/events/schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class Event(BaseModel):
8888
geo: Optional[Geo] = None
8989
id: str
9090
impact_patterns: Optional[List[ImpactPattern]] = []
91-
labels: List[str]
91+
labels: Optional[List[str]] = None
9292
location: Optional[Tuple[float, float]] = None
9393
parent_event: Optional[ParentEvent] = None
9494
phq_labels: Optional[List[PHQLabels]] = None

predicthq/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "5.1.0"
1+
__version__ = "5.1.1"

0 commit comments

Comments
 (0)