microsoftgraph / msgraph-sdk-php

Microsoft Graph Library for PHP.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChangeType enum not handling capitalized values

wasdmco opened this issue · comments

We are using v1 (1.109.2) and are seeing problems when handling change notifications: "unhandled enum value Updated"
Model/ChangeType.php is stating that it only supports updated/deleted/created (note the lower case words).
Notifications apparently have Updated/Deleted/Created (since a new update on the Graph servers ?).

We are seeing this when calling ChangeNotification::getChangeType().
The ChangeNotification object has been created when handling the incoming request that we receive, something like this:

$notificationData = $request->getDecodedJsonContent();
$notification = new ChangeNotification($notificationData);
$changeType = $notification->getChangeType();     <===== Throws!

I noticed this too, it seemed to be a one off hickup that the notification delivered capitalized values, error on the server end?