mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[PR #533] [MERGED] [fix] Fix the malformed JSON response of get-playlists-tracks endpoint #519
Labels
No labels
Stale
bug
discussion
enhancement
good first issue
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rspotify#519
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ramsayleung/rspotify/pull/533
Author: @ramsayleung
Created: 7/8/2025
Status: ✅ Merged
Merged: 7/8/2025
Merged by: @ramsayleung
Base:
master← Head:ramsay/fix-malformed-json📝 Commits (3)
9b55124[fix]Fix the malformed JSON response of playlist_items_manual endpoint4927bfeUpdate CHANGELOG and fix cargo error7b961c6Fix clippy error📊 Changes
5 files changed (+141 additions, -1 deletions)
View changed files
📝
CHANGELOG.md(+4 -0)📝
rspotify-model/src/lib.rs(+23 -0)📝
rspotify-model/src/show.rs(+2 -1)📝
rspotify-model/src/track.rs(+1 -0)📝
tests/test_models.rs(+111 -0)📄 Description
Description
Fix the misformed JSON response of
get-playlists-tracksendpoint, the problem is that thePlayableItemenum expects either aTrackorEpisode, but the JSON contains a hybrid object that has characteristics of both.But based on API doc of get playlist item:
This is a classic case of API documentation vs. reality mismatch.
Motivation and Context
https://github.com/ramsayleung/rspotify/issues/525
Dependencies
None
Type of change
Please delete options that are not relevant.
How has this been tested?
test_deserialization_playlist_item_with_malformed_episodes: passedIs this change properly documented?
Yes
Don't forget to add an entry to the CHANGELOG if necessary (new features, breaking changes, relevant internal improvements).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.