StoreDev / StoreLib

Storelib is a DotNet library that provides APIs to interact with the various Microsoft Store endpoints.
Mozilla Public License 2.0
139 stars 47 forks source link

public class ProductDetails : Payload appears to be an incorrect mapping for RevisionId #9

Open Noemata opened 3 years ago

Noemata commented 3 years ago

Changing the following in ProductDetails corrects JSON conversion exceptions when getting data back from the store:

        // MP! was:
        //public DateTimeOffset RevisionId { get; set; }
        // MP! changed: To resolve JSON conversion exception.
        //             Type mapping was probably incorrect.
        public string RevisionId { get; set; }

RevisionId does not sound like a DateTimeOffset value.

tuxuser commented 3 years ago

Do you possibly have example JSONs that contain RevisionId ?

Noemata commented 3 years ago

Here's one example:

{"RevisionId": "2020-12-15T04:11:02.0384876Z||22f9f987-7000-47da-8daf-4fab6851bd6d||PackageVersion1"}