From 9980282ab4ba10ef28edb540c9d2f50f3204a70b Mon Sep 17 00:00:00 2001 From: Sym Roe Date: Tue, 4 Apr 2023 17:55:54 +0100 Subject: [PATCH] URL is optional --- v1/models/base.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/v1/models/base.py b/v1/models/base.py index 562f1ea..cdabf74 100644 --- a/v1/models/base.py +++ b/v1/models/base.py @@ -26,11 +26,12 @@ class Notification(BaseModel): type: str = Field( default_factory=str, description="The type of notification" ) - url: str = Field( + url: Optional[str] = Field( description=( "Details about this notification. This value should be shown " "to your users as a 'read more' link" - ) + ), + ) title: str = Field( description=(