From 4233abdf4bccd7ffc0496c29ccd8e4992477b708 Mon Sep 17 00:00:00 2001 From: Andrew Herrington Date: Fri, 7 Jan 2022 20:22:01 -0600 Subject: [PATCH] update CheckCreate optionals These optionals need default values or they fail to validate --- src/healthchecks_io/schemas/checks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/healthchecks_io/schemas/checks.py b/src/healthchecks_io/schemas/checks.py index 8144777..9994575 100644 --- a/src/healthchecks_io/schemas/checks.py +++ b/src/healthchecks_io/schemas/checks.py @@ -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.",