You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
followers.href says nullable, so I assumed the unmarked fields were required. In reality, at least followers, genres and images have shown to be nullable. Which fields are actually required? Can I rely on name?
Artists is just an example, I'm wondering the same for all models.
Thanks a lot!
The text was updated successfully, but these errors were encountered:
This also applies to the images property of the Playlist interface. I had assumed that the type was always going to be an empty array and was getting a run-time error as the API was returning null.
Admittedly, the library is correctly following the documentation "Images for the playlist. The array may be empty or contain up to three images." (emphasis mine), so it's the API at fault here.
Same with tracks.preview_url. Type says string but getting null at runtime. This field is shown as nullable in the API reference, but typed as string instead of string | null
The docs specify some fields as required and some nullable, but most have no annotation.
E.g. artists
followers.href
saysnullable
, so I assumed the unmarked fields were required. In reality, at leastfollowers
,genres
andimages
have shown to be nullable. Which fields are actually required? Can I rely onname
?Artists is just an example, I'm wondering the same for all models.
Thanks a lot!
The text was updated successfully, but these errors were encountered: