update CheckCreate optionals

These optionals need default values or they fail to validate
This commit is contained in:
Andrew Herrington
2022-01-07 20:22:01 -06:00
parent bbebf174b9
commit 4233abdf4b

View File

@@ -65,11 +65,11 @@ class Check(BaseModel):
class CheckCreate(BaseModel):
"""Pydantic object for creating a check."""
name: Optional[str] = Field(..., description="Name of the check")
name: Optional[str] = Field("", description="Name of the check")
tags: Optional[str] = Field(
..., description="String separated list of tags to apply"
"", description="String separated list of tags to apply"
)
desc: Optional[str] = Field(..., description="Description of the check")
desc: Optional[str] = Field("", description="Description of the check")
timeout: Optional[int] = Field(
86400,
description="The expected period of this check in seconds.",