Skip to content

Commit

Permalink
Remove GUID and VIN as requried components (#364)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
ajain-93 and GitOldGrumpy authored Aug 13, 2024
1 parent 32014f0 commit 5310e09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mytoyota/models/endpoints/notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class NotificationModel(BaseModel):


class _PayloadItemModel(BaseModel):
vin: str
vin: str = None
notifications: List[NotificationModel]


Expand All @@ -61,7 +61,7 @@ class NotificationResponseModel(BaseModel):
"""

guid: UUID
guid: UUID = None
status_code: int = Field(alias="statusCode")
headers: _HeadersModel
body: str
Expand Down

0 comments on commit 5310e09

Please sign in to comment.