[GH-ISSUE #411] PlaylistItem.track possibly shouldn't be wrapped in Option #135

Closed
opened 2026-02-27 20:23:19 +03:00 by kerem · 3 comments
Owner

Originally created by @kangalio on GitHub (May 18, 2023).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/411

At least when returned from Get Playlist, the field is never absent:

Screenshot_20230519_014641

Link

I'm not sure which other endpoints return payloads containing PlaylistItem - if PlaylistItem.track is optional in any of those, we probably shouldn't duplicate PlaylistItem and instead add a doc comment to BaseClient.playlist(): "the [`PlaylistItem::track`] field in this response is always Some".

Originally created by @kangalio on GitHub (May 18, 2023). Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/411 At least when returned from Get Playlist, the field is never absent: ![Screenshot_20230519_014641](https://github.com/ramsayleung/rspotify/assets/21220820/887c4f4b-7cff-4743-a760-954dec3d8f7d) [Link](https://developer.spotify.com/documentation/web-api/reference/get-playlist) I'm not sure which other endpoints return payloads containing PlaylistItem - if PlaylistItem.track _is_ optional in any of those, we probably shouldn't duplicate PlaylistItem and instead add a doc comment to BaseClient.playlist(): "the \[\`PlaylistItem::track\`\] field in this response is always Some".
kerem 2026-02-27 20:23:19 +03:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 15, 2023):

Message to comment on stale issues. If none provided, will not mark issues stale

<!-- gh-comment-id:1811687912 --> @github-actions[bot] commented on GitHub (Nov 15, 2023): Message to comment on stale issues. If none provided, will not mark issues stale
Author
Owner

@kangalio commented on GitHub (Nov 30, 2023):

Another valid inprovement suggestion lost to the relentless bug report steamroller called stale bot :'(

<!-- gh-comment-id:1833444728 --> @kangalio commented on GitHub (Nov 30, 2023): Another valid inprovement suggestion lost to the relentless bug report steamroller called stale bot :'(
Author
Owner

@github-actions[bot] commented on GitHub (Nov 28, 2025):

Message to comment on stale issues. If none provided, will not mark issues stale

<!-- gh-comment-id:3587752603 --> @github-actions[bot] commented on GitHub (Nov 28, 2025): Message to comment on stale issues. If none provided, will not mark issues stale
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#135
No description provided.