Skip to content

Commit 035a3aa

Browse files
Ola AustineOla Austine
authored andcommitted
fix: making this more pydantic
1 parent 9e8cbb1 commit 035a3aa

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

src/variables.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ class Variables(BaseModel):
88
description: str | None = None
99

1010
def as_input(self):
11-
return {
12-
"input": {
13-
"teamId": str(self.teamId),
14-
"title": self.title,
15-
"description": self.description,
16-
}
17-
}
11+
data = self.model_dump()
12+
data["teamId"] = str(data["teamId"])
13+
return {"input": data}

0 commit comments

Comments
 (0)