Open AlexCSDev opened 2 months ago
Whatever serializer DeviantArt uses must (at least sometimes) render empty objects {}
as empty arrays []
- I'm guessing whatever langauge they use on the backend doesn't distinguish between those two. I remember having an issue like that before.
I might just remove tier.stats
from the model and add a note about it, unless you (or someone else) needs to use that for something.
I don't particularly need that, so feel free to remove it if that's the easiest way of dealing with that.
Should be fixed in https://www.nuget.org/packages/DeviantArtFs/9.1.1
Hello, while using
DeviantArtFs.Api.Browse.PageNewestAsync
method I have noticed that there is an inconsisency in returned deviation objects which results in the following error:Here is the problematic
tier
object in question:As you can see, despite documentation mentioning it can only be an object, for some reason they are returning array for
stats
and I guess that's why deserialization error is happening. I have also tested this with/deviation/#GUID#
endpoint and it returns the same out of spec object, so this seems to be an issue in all of their api endpoints which returndeviation
object.I'm not sure if you can do something about that, but I thought it's worth letting you know about this issue.