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
From a rapid investigation, this is related to this kiota issue: #357
The serialize method of PlannerAssignments (and other similar classes like PlannerChecklistItems call write_additional_data_value which is the problematic function.
def write_additional_data_value(self, value: Dict[str, Any]) -> None:
"""Writes the specified additional data to the stream.
Args:
value (Dict[str, Any]): he additional data to be written.
"""
if isinstance(value, dict):
for key, val in value.items():
self.write_any_value(key, val)
That method takes the additional data, loops through the keys and sends them to write_any_value. In this case, the key would be the unique ID of the assigned person and the value would be a dict that contains the @odata.type and associated parameters.
However, the write_any_value doesn't have a isinstance(value, dict) check and therefore fails. Any call to write_additional_data_value would therefore cause this issue.
Even if we fix the parsing issue, we encounter another problem because the @odata_type attribute is never translated to @odata.type.
Environment
3.10
microsoft-kiota-serialization-json 1.1.0
amazonlinux:2
Stack trace (if available)
Describe the bug
Patching of custom security attribute is failing with above traceback
The input for pathing is
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should work as it worked under version 1.0.1
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: