microsoftgraph / msgraph-sdk-java

Microsoft Graph SDK for Java
https://docs.microsoft.com/en-us/graph/sdks/sdks-overview
MIT License
403 stars 134 forks source link

OperationStatus not correctly decoded from JSON #2233

Open pschichtel opened 2 days ago

pschichtel commented 2 days ago

Describe the bug

OperationStatus.forValue() expects the value to be capitalized, however the webhooks receive e.g. PlayPromptOperation entities with the value starts with a small letter. So the SDK expects "Running", but receives "running".

Expected behavior

Status is properly decoded

How to reproduce

Decode a webhook notification collection that contains a PlayPromptOperation entity as data.

SDK Version

6.20

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

No response

Configuration

No response

Other information

No response

pschichtel commented 3 hours ago

This affects all commOperations objects.