Skip to content

Commit 7710f71

Browse files
fix(specs): make optional for tasks [skip-bc] (generated)
algolia/api-clients-automation#4095 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 3aabb18 commit 7710f71

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

algoliasearch/ingestion/models/task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class Task(BaseModel):
6464
""" Whether the task is enabled. """
6565
failure_threshold: Optional[int] = None
6666
""" Maximum accepted percentage of failures for a task run to finish successfully. """
67-
action: ActionType
67+
action: Optional[ActionType] = None
6868
cursor: Optional[str] = None
6969
""" Date of the last cursor in RFC 3339 format. """
7070
created_at: str

algoliasearch/ingestion/models/task_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class TaskV1(BaseModel):
5858
""" Whether the task is enabled. """
5959
failure_threshold: Optional[int] = None
6060
""" Maximum accepted percentage of failures for a task run to finish successfully. """
61-
action: ActionType
61+
action: Optional[ActionType] = None
6262
cursor: Optional[str] = None
6363
""" Date of the last cursor in RFC 3339 format. """
6464
created_at: str

0 commit comments

Comments
 (0)