Skip to content

Commit

Permalink
Fix deserialization error with event participant (#369)
Browse files Browse the repository at this point in the history
Event participant status is optional, as the field doesn't get populated for iCloud events.
  • Loading branch information
mrashed-dev authored May 17, 2024
1 parent 25d7331 commit bea67e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------------
Expand Down
2 changes: 1 addition & 1 deletion nylas/models/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bea67e3

Please sign in to comment.