[GH-ISSUE #37] Null-value for album_type prevents parsing #15

Closed
opened 2026-02-27 20:22:36 +03:00 by kerem · 0 comments
Owner

Originally created by @hrkfdn on GitHub (Mar 22, 2019).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/37

I have already reported this upstream. but I doubt it'll be addressed anytime soon, if at all.

It seems that, unlike stated by the documentation, album_type can be null for local tracks. This causes parsing errors in rspotify. We could either transform album_type in our struct to an Option, or set it to an empty string for these cases. I'm guessing the latter would be better as it won't break API, but the former seems more correct?

Originally created by @hrkfdn on GitHub (Mar 22, 2019). Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/37 I have already [reported this upstream](https://github.com/spotify/web-api/issues/1206). but I doubt it'll be addressed anytime soon, if at all. It seems that, unlike stated by the documentation, `album_type` can be `null` for local tracks. This causes parsing errors in rspotify. We could either transform `album_type` in our struct to an `Option`, or set it to an empty string for these cases. I'm guessing the latter would be better as it won't break API, but the former seems more correct?
kerem closed this issue 2026-02-27 20:22:36 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rspotify#15
No description provided.