Skip to content

Commit 1c25508

Browse files
committed
feat: modify lower_bound and upper_bound validation
1 parent 24f07d3 commit 1c25508

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

eventsourcingdb_client_python/handlers/lower_bound.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# TODO: id must be a string.
66
@dataclass
77
class LowerBound:
8-
id: int
8+
id: str
99
type: str
1010

1111
def __post_init__(self):
@@ -15,7 +15,7 @@ def __post_init__(self):
1515
reason='type must be either "inclusive" or "exclusive"'
1616
)
1717

18-
if self.id < 0:
18+
if int(self.id) < 0:
1919
raise InvalidParameterError(
2020
parameter_name='LowerBound',
2121
reason='id must be non-negative'

eventsourcingdb_client_python/handlers/upper_bound.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
@dataclass
77
class UpperBound:
8-
id: int
8+
id: str
99
type: str
1010

1111
def __post_init__(self):

0 commit comments

Comments
 (0)