mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
validate plans api response as pydantic basemodel object 🟩
This commit is contained in:
parent
79db1e2c7e
commit
e67604a4a3
1 changed files with 13 additions and 0 deletions
|
|
@ -274,6 +274,19 @@ class PlanSummary(BaseModel):
|
|||
created_by: Optional[CreatedBy] = None
|
||||
|
||||
|
||||
class Paging(BaseModel):
|
||||
model_config = _IGNORE
|
||||
page: int
|
||||
next_page: bool
|
||||
count: int
|
||||
|
||||
|
||||
class PlansListResponse(BaseModel):
|
||||
model_config = _IGNORE
|
||||
paging: Paging
|
||||
plans: list[PlanSummary] = []
|
||||
|
||||
|
||||
class MagicPlan(BaseModel):
|
||||
model_config = _IGNORE
|
||||
plan: PlanSummary
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue