mirror of
https://github.com/andrewthetechie/py-healthchecks.io.git
synced 2026-05-01 11:17:06 +02:00
update CheckCreate optionals
These optionals need default values or they fail to validate
This commit is contained in:
@@ -65,11 +65,11 @@ class Check(BaseModel):
|
|||||||
class CheckCreate(BaseModel):
|
class CheckCreate(BaseModel):
|
||||||
"""Pydantic object for creating a check."""
|
"""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(
|
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(
|
timeout: Optional[int] = Field(
|
||||||
86400,
|
86400,
|
||||||
description="The expected period of this check in seconds.",
|
description="The expected period of this check in seconds.",
|
||||||
|
|||||||
Reference in New Issue
Block a user