Skip to content

Commit

Permalink
Made stream_resource::run_start optional
Browse files Browse the repository at this point in the history
  • Loading branch information
evalott100 committed Oct 3, 2023
1 parent 6d3d8f2 commit 98b9905
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 8 additions & 6 deletions event_model/documents/stream_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ class StreamResource(TypedDict):
description="Subset of resource_path that is a local detail, not semantic."
),
]
run_start: Annotated[
str,
Field(
description="Globally unique ID to the run_start document "
"this Stream Resource is associated with.",
),
run_start: NotRequired[
Annotated[
str,
Field(
description="Globally unique ID to the run_start document "
"this Stream Resource is associated with.",
),
]
]
spec: Annotated[
str,
Expand Down
1 change: 0 additions & 1 deletion event_model/schemas/stream_resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"resource_kwargs",
"resource_path",
"root",
"run_start",
"spec",
"uid"
],
Expand Down

0 comments on commit 98b9905

Please sign in to comment.