Skip to content

Commit 5310e09

Browse files
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 <[email protected]>
1 parent 32014f0 commit 5310e09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mytoyota/models/endpoints/notifications.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class NotificationModel(BaseModel):
4343

4444

4545
class _PayloadItemModel(BaseModel):
46-
vin: str
46+
vin: str = None
4747
notifications: List[NotificationModel]
4848

4949

@@ -61,7 +61,7 @@ class NotificationResponseModel(BaseModel):
6161
6262
"""
6363

64-
guid: UUID
64+
guid: UUID = None
6565
status_code: int = Field(alias="statusCode")
6666
headers: _HeadersModel
6767
body: str

0 commit comments

Comments
 (0)