babelshift/SteamWebAPI2

Wrong PublishedFileDetailsModel.Visibility value for friends-only / private items

oliver4888 opened this issue · 1 comments

As the title suggests, using the SteamRemoteStorage interface, the library returns PublishedFileVisibility.Public for workshop items that are either Friends Only or Private. I looked at these workshop items in Postman and it appears that only the publishedfileid and result fields are returned for Friends Only or Private items:

image

It seems that "result": 9 is some kind of generic error code.

Since the "visibility" property is missing from the response for those items with result = 9, the PublishedFileVisibility enum is being set to the default value 0 (Public).

I might be able to update the JSON parser to instead default to something like "Unknown".