Skip to content

Commit 5e41354

Browse files
vdusekclaude
andcommitted
Fix ExampleWebhookDispatch.finishedAt to allow None
The API returns null for finishedAt when a dispatch hasn't completed yet. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7cc58dd commit 5e41354

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/apify_client/_models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,9 @@ class ExampleWebhookDispatch(BaseModel):
566566
extra='allow',
567567
)
568568
status: WebhookDispatchStatus
569-
finished_at: Annotated[AwareDatetime, Field(alias='finishedAt', examples=['2019-12-13T08:36:13.202Z'])]
569+
finished_at: Annotated[AwareDatetime | None, Field(alias='finishedAt', examples=['2019-12-13T08:36:13.202Z'])] = (
570+
None
571+
)
570572

571573

572574
class WebhookStats(BaseModel):

0 commit comments

Comments
 (0)