Skip to content

Commit 20e8840

Browse files
committed
remove deffault values for earliesT_offset and latest_offset.
These values must be supplied explicitly.
1 parent 9a83a3c commit 20e8840

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

contentctl/objects/drilldown.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,16 @@
99
class Drilldown(BaseModel):
1010
name: str = Field(..., description="The name of the drilldown search", min_length=5)
1111
search: str = Field(..., description="The text of a drilldown search. This must be valid SPL.", min_length=1)
12-
earliest_offset:str = Field(default="$info_min_time$", description="Earliest offset time for the drilldown search", min_length= 1)
13-
latest_offset:str = Field(default="$info_max_time$", description="Latest offset time for the driolldown search", min_length= 1)
12+
earliest_offset:str = Field(...,
13+
description="Earliest offset time for the drilldown search. "
14+
"The most common value for this field is '$info_min_time$', "
15+
"but it is NOT the default value and must be supplied explicitly.",
16+
min_length= 1)
17+
latest_offset:str = Field(...,
18+
description="Latest offset time for the driolldown search. "
19+
"The most common value for this field is '$info_max_time$', "
20+
"but it is NOT the default value and must be supplied explicitly.",
21+
min_length= 1)
1422

1523
@classmethod
1624
def constructDrilldownFromDetection(cls, detection: Detection) -> Drilldown:

0 commit comments

Comments
 (0)