kontent-ai / delivery-sdk-net

Kontent.ai Delivery .NET SDK

Home Page:https://www.nuget.org/packages/Kontent.Ai.Delivery

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.NET SDK of Sync Api not correctly deserializing JSON

selmiskr opened this issue · comments

Brief bug description

When sync api recognizes changes and we try to retrieve the changes with the help of the .NET SDK we get an empty response back.
But when we look at the JSON of the response, we are noticing that the entire data is correctly there.

We suspect that the deserialization of the JSON item to the ISyncItem is not correctly done.

Screenshots

image (1)
image (2)

hello and thank you for the issue submission. I'll review the sync method and get back to you with an update.

the model differed from the API response format, without mapping implemented to account for that. I adjusted the model to match sync API response, content item information is now nested in Data property.

a strongly typed item can be retrieved from newly introduced StronglyTypedData property, as long as a TypeProvider is registered and can found a suitable model. the property is null otherwise