From bea67e30f0045536b2faf9da6e6f7194c055c02d Mon Sep 17 00:00:00 2001 From: Mostafa Rashed <17770919+mrashed-dev@users.noreply.github.com> Date: Fri, 17 May 2024 14:12:17 -0400 Subject: [PATCH] Fix deserialization error with event participant (#369) Event participant status is optional, as the field doesn't get populated for iCloud events. --- CHANGELOG.md | 1 + nylas/models/events.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0eb1d754..94ddfd7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Unreleased * Added additional webhook triggers * Made event visibility optional to support iCloud events * Fixed issue where attachments < 3mb were not being encoded correctly +* Fixed issue deserializing event and code exchange responses. v6.1.1 ---------------- diff --git a/nylas/models/events.py b/nylas/models/events.py index fc27480e..5448dcb2 100644 --- a/nylas/models/events.py +++ b/nylas/models/events.py @@ -37,7 +37,7 @@ class Participant: """ email: str - status: ParticipantStatus + status: Optional[ParticipantStatus] = None name: Optional[str] = None comment: Optional[str] = None phone_number: Optional[str] = None