From 5310e0979c97835a3d9d8859a2213a503f26c3d4 Mon Sep 17 00:00:00 2001 From: Arnav Jain Date: Tue, 13 Aug 2024 21:54:07 +0200 Subject: [PATCH] Remove GUID and VIN as requried components (#364) * Update NotificationResponseModel for non-required field * Removed VIN as a required value VIN only part of the payload for each notification payload. --------- Co-authored-by: GitOldGrumpy --- mytoyota/models/endpoints/notifications.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mytoyota/models/endpoints/notifications.py b/mytoyota/models/endpoints/notifications.py index 8fbd9184..ef3635a7 100644 --- a/mytoyota/models/endpoints/notifications.py +++ b/mytoyota/models/endpoints/notifications.py @@ -43,7 +43,7 @@ class NotificationModel(BaseModel): class _PayloadItemModel(BaseModel): - vin: str + vin: str = None notifications: List[NotificationModel] @@ -61,7 +61,7 @@ class NotificationResponseModel(BaseModel): """ - guid: UUID + guid: UUID = None status_code: int = Field(alias="statusCode") headers: _HeadersModel body: str