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
I am trying to retrieve the ListItem related to a specified DriveItem
I am using the following code: list_item = await self.graph_client.drives.by_drive_id(self.drive_id).items.by_drive_item_id(drive_item_id=drive_item_id).list_item.get()
After parsing the response, I’ve noticed that some fields in the output have different values compared to those returned by the Graph API playground.
// Graph API Playground Output
{
//... other fields
"_Revision": "02",
"AuthorLookupId": "6",
"EditorLookupId": "10",
"_UIVersionString": "19.0"
}
For example, the correct _Revision field value is "02", but the SDK returns it as a date. The same issue appears with other standard SHP fields, which are numbers but are somehow converted to dates by the SDK.
Why does this behavior occur?
Expected behavior
I expect that the SDK returns the same value present in the Graph API Playground.
How to reproduce
Authentication with ClientSecretCredential class from the azure.identity.aio module;
Invoke the function above by passing a drive_id and a drive_item_id;
SDK Version
1.8.0 (Downloaded last week)
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```
</details>
### Configuration
- OS: Windows Server 2019
- Python version: 3.11.9
- Architecture: x64
### Other information
_No response_
The text was updated successfully, but these errors were encountered:
Hello @devistollon thanks for using the SDK and for raising this.
On this, we have had a scenario where a number of numeric fields are converted to datetime objects, this has been fixed in the latest version of the json serialization library, check out microsoft/kiota-serialization-json-python#358 and upgrade the library to the latest version.
Describe the bug
I am trying to retrieve the
ListItem
related to a specifiedDriveItem
I am using the following code:
list_item = await self.graph_client.drives.by_drive_id(self.drive_id).items.by_drive_item_id(drive_item_id=drive_item_id).list_item.get()
After parsing the response, I’ve noticed that some fields in the output have different values compared to those returned by the Graph API playground.
Below is the output with the fields that differ:
For example, the correct _Revision field value is "02", but the SDK returns it as a date. The same issue appears with other standard SHP fields, which are numbers but are somehow converted to dates by the SDK.
Why does this behavior occur?
Expected behavior
I expect that the SDK returns the same value present in the Graph API Playground.
How to reproduce
ClientSecretCredential
class from theazure.identity.aio
module;SDK Version
1.8.0 (Downloaded last week)
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: