Skip to content

Commit

Permalink
create pipelineGetBrief schema (#78)
Browse files Browse the repository at this point in the history
* create brief schema, keep pipelineGet as is

* update inheritance

* version bump
  • Loading branch information
bjornaer authored Apr 20, 2022
1 parent 20ee4d5 commit 0483d90
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion pipeline/schemas/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,15 @@ def file_or_id_validation(cls, values):
return values


class PipelineGet(RunnableGet):
class PipelineGetBrief(BaseModel):
id: str
name: str
deployed: bool = False
tags: List[str] = []
description: str = ""


class PipelineGet(PipelineGetBrief, RunnableGet):
type: RunnableType = Field(RunnableType.pipeline, const=True)
variables: List[PipelineVariableGet]
functions: List[FunctionGet]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pipeline-ai"
version = "0.0.27"
version = "0.0.28"
description = "Pipelines for machine learning workloads."
authors = ["Paul Hetherington <ph@mystic.ai>", "Alex Pearwin <alex@mystic.ai>", "Maximiliano Schulkin <max@mystic.ai>", "Neil Wang <neil@mystic.ai>"]
packages = [
Expand Down

0 comments on commit 0483d90

Please sign in to comment.