Skip to content

Commit b1b28ff

Browse files
algolia-botmillotp
andcommitted
fix(specs): allow one sided rule validity (generated)
algolia/api-clients-automation#5060 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent bcade16 commit b1b28ff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

algoliasearch/recommend/models/time_range.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ class TimeRange(BaseModel):
3333
TimeRange
3434
"""
3535

36-
var_from: int
36+
var_from: Optional[int] = None
3737
""" When the rule should start to be active, in Unix epoch time. """
38-
until: int
38+
until: Optional[int] = None
3939
""" When the rule should stop to be active, in Unix epoch time. """
4040

4141
model_config = ConfigDict(

algoliasearch/search/models/time_range.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ class TimeRange(BaseModel):
3333
TimeRange
3434
"""
3535

36-
var_from: int
36+
var_from: Optional[int] = None
3737
""" When the rule should start to be active, in Unix epoch time. """
38-
until: int
38+
until: Optional[int] = None
3939
""" When the rule should stop to be active, in Unix epoch time. """
4040

4141
model_config = ConfigDict(

0 commit comments

Comments
 (0)