Skip to content

Commit 1df0c6d

Browse files
committed
Updating implementation
1 parent 1922ff6 commit 1df0c6d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
- For stream events data field can be None, not empty object.
89

910

1011
## [1.11.2] - 2024-01-05

src/corva/models/stream/raw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class RawBaseRecord(CorvaBaseEvent, abc.ABC):
1919
company_id: int
2020
collection: str
2121

22-
data: dict = {}
22+
data: Optional[dict] = {}
2323
metadata: dict = {}
2424

2525
@property

src/corva/models/stream/stream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class StreamTimeRecord(CorvaBaseEvent):
1616
"""
1717

1818
timestamp: int
19-
data: dict = {}
19+
data: Optional[dict] = {}
2020
metadata: dict = {}
2121

2222

0 commit comments

Comments
 (0)