You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When Graph returns an error it contains an Error and an InnerError. This InnerError has a date field when the error happened. This field is within the SDK marked as Date, but it must be date. Otherwise the field won't be populated and must be read from the AdditionalData dictionary.
publicvirtualIDictionary<string,Action<IParseNode>>GetFieldDeserializers(){returnnewDictionary<string,Action<IParseNode>>{{"client-request-id", n =>{ClientRequestId=n.GetStringValue();}},{"Date", n =>{Date=n.GetDateTimeOffsetValue();}},// 👈🏻 wrong case{"@odata.type", n =>{OdataType=n.GetStringValue();}},{"request-id", n =>{RequestId=n.GetStringValue();}},};}
publicvirtualIDictionary<string,Action<IParseNode>>GetFieldDeserializers(){returnnewDictionary<string,Action<IParseNode>>{{"client-request-id", n =>{ClientRequestId=n.GetStringValue();}},{"date", n =>{Date=n.GetDateTimeOffsetValue();}},// 👈🏻 correct case{"@odata.type", n =>{OdataType=n.GetStringValue();}},{"request-id", n =>{RequestId=n.GetStringValue();}},};}
Describe the bug
When Graph returns an error it contains an Error and an InnerError. This InnerError has a date field when the error happened. This field is within the SDK marked as
Date
, but it must bedate
. Otherwise the field won't be populated and must be read from theAdditionalData
dictionary.https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/d0ed65c90cd5fd5fd22fe8b3ea4e420036e2f1b1/src/Microsoft.Graph/Generated/Models/ODataErrors/InnerError.cs#L85C21-L85C21
The text was updated successfully, but these errors were encountered: