-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Client bug]: PATCH Planner.Tasks[id].Details ChecklistItems Odata Type not serializing correctly. #1933
Comments
An update: I took the normal request we'd be passing in above: And serialized it to match this model 1:1 to my own custom model serializing the properties into what the end point is requesting. A lot of trial and error went into find the expected property values. In the end I still landed on the error:
Here is my full modeling:
My request:
(note: it was complaining about PlannerTaskDetails.ODataType being null so I had to fill it out with something - even though its missing from documentation, so I guessed at the value) Relevant part of the work around described in bug ticket above:
@andrueastman I've tried to fork this repo to replicate the Model you added in PR #1754 (specifically this commit) for ChecklistItems, however, I can't load the solution in VS2022 as it complains about a file path being too long. No matter what setting I change on my corporate machine won't allow long file names. |
I have the same issue, hope this will be fixed soon. For now, we will stick with the v4 Graph SDK. @andrueastman the same problem is happening with PlannerExternalReferences. |
Describe the bug
When updating a planner task, it fails with the following error:
To Reproduce
Steps to reproduce the behavior:
This is very similar to #1729 . All steps to reproduce can be done the exact same way except with Checklist in PlannerTaskDetails.
The simplest representation of my code is:
I was not able to implement the workaround listed for this as I was updating an existing planner by adding a checklist to it. In trying to work around many other properties not serializing correctly with the same behavior (
Checklist
for one)I copy/pasted the example from the documentation on PlannerTaskDetails and it still failed to Patch.
Expected behavior
The
OdataType
should be serialized to@odata.type
.The
OrderHint
should be serialized toorderHint
.The
IsChecked
should be serialized toisChecked
.Client version
5.11.0
Desktop (please complete the following information):
Additional context
This is some of the modeling I was doing to get around the Bad Request errors during attempting the work around:
The text was updated successfully, but these errors were encountered: