-
Notifications
You must be signed in to change notification settings - Fork 15
Description
I originally mentioned this in #53 (comment) but to have it reported in a more visible place, responses from Steam can have fields completely omitted from the json rather than have a placeholder such as null or an empty string, which will often break serialization due to strictly expecting the field to exist in the response. This happens, for example, when a query returns an empty list or an option toggles whether the response contains one field or another (i.e. the "return short description" option in PublishedFileService's query files API).
Admittedly this is largely a documentation issue on Steam's part (like seriously, I can't find documentation anywhere about their web API responses) but it's still annoying to run into. Of course, due to this lack of documentation, I don't have a complete solution other than "do your best to catch undocumented cases!" but I think clear direction on what your preferred plan of action when library consumers do run into this issue (make the field optional, set a default value, or something else) would be helpful for both you as the maintainer as well as anyone who might be able to contribute.