← 输入框|github.com|刷新
Skip to content

fix(playlists): serialize the remove-playlist-items items body as a JSON array - #481

Merged
dargmuesli merged 1 commit into
mainfrom
fix/playlists/remove-items
Nov 2, 2026
Merged

dargmuesli merged 1 commit into
mainfrom
fix/playlists/remove-items

Conversation

@dargmuesli

Copy link
Copy Markdown
Member

The remove-playlist-items endpoint (DELETE /playlists/{playlist_id}/items) had been sending its items body parameter as an escaped JSON string rather than a JSON array, so Spotify rejected the requests with a "no URIs specified" error. This regressed when the request body serializer moved to a per-parameter allow-list of names to re-parse as JSON and items was never added to it; the deprecated /tracks endpoint kept working because tracks is on that list. Adding items to the set restores correct serialization, and a regression test now asserts on the serialized body, which the existing test never inspected.

Fixes #478

@dargmuesli
dargmuesli enabled auto-merge November 2, 2026 16:22
@codecov

codecov Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 46.63%. Comparing base (6885f22) to head (cbc9c08).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #481      +/-   ##
============================================
+ Coverage     46.11%   46.63%   +0.51%     
- Complexity      683      691       +8     
============================================
  Files           209      209              
  Lines          6252     6262      +10     
  Branches        753      755       +2     
============================================
+ Hits           2883     2920      +37     
+ Misses         2812     2783      -29     
- Partials        557      559       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dargmuesli
dargmuesli merged commit 228b811 into main Nov 2, 2026
11 checks passed
@dargmuesli
dargmuesli deleted the fix/playlists/remove-items branch November 2, 2026 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

removePlaylistItems endpoint seems to be broken

1 participant