Skip to content

Commit

Permalink
set default of 'uses' property in the Pipeline model to None
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Oct 12, 2023
1 parent ab5881f commit 309d233
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/src/backend/views/http/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ class FunctionTask(BaseTask):
class Pipeline(BaseModel):
id: ID
type: EnumPipelineType = EnumPipelineType.Workflow
uses: Union[str, Uses] = {}
uses: Union[str, Uses] = None
tasks: List[
Annotated[
Union[
Expand Down
2 changes: 1 addition & 1 deletion src/engine/src/owe_python_sdk/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ class FunctionTask(BaseTask):
class Pipeline(BaseModel):
id: ID
type: EnumPipelineType = EnumPipelineType.Workflow
uses: Union[str, Uses] = {}
uses: Union[str, Uses] = None
tasks: List[
Annotated[
Union[
Expand Down

0 comments on commit 309d233

Please sign in to comment.