Skip to content

Commit

Permalink
Add name and description fields to Plan model in d2x/models.py
Browse files Browse the repository at this point in the history
* Add `name` field with a description to the Plan model
* Add `description` field with a default value of None to the Plan model
  • Loading branch information
jlantz committed Nov 1, 2024
1 parent 373ca17 commit 8a511a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions d2x/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ class RunPhase(CommonBaseModel):
testing_steps: Optional[List[RunStep]] = Field(default=None, description="List of testing steps to perform")

class Plan(CommonBaseModel):
name: str = Field(..., description="Name of the plan")
description: Optional[str] = Field(default=None, description="Description of the plan")
collect: CollectPhase
check: CheckPhase
run: RunPhase

0 comments on commit 8a511a0

Please sign in to comment.