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

fix(codegen)!: send a parameter offered in both query and body in the body - #500

Merged
dargmuesli merged 1 commit into
betafrom
fix/codegen/body-params
Nov 6, 2026
Merged

dargmuesli merged 1 commit into
betafrom
fix/codegen/body-params

Conversation

@dargmuesli

Copy link
Copy Markdown
Member

The generated requests dropped a body field whenever the spec also offered it as a query parameter, so 11.0.0 lost the body variants of uris and position on addItemsToPlaylist, uris on updatePlaylistsItemsReplace and ids on follow/unfollow. The query string limits how many URIs or IDs fit into the request URI, which Spotify itself warns about, so the generator now keeps the body field instead and makes it required wherever the query parameter was. The affected setters and SpotifyApi methods take a List; this also moves the ids of the deprecated save/remove albums, episodes and tracks methods into the body. MIGRATION.md, the examples and the tests are updated accordingly.

Closes #499

@codecov

codecov Bot commented Nov 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 37.10%. Comparing base (5a8aa7b) to head (68bd9be).

Additional details and impacted files
@@            Coverage Diff            @@
##               beta     #500   +/-   ##
=========================================
  Coverage     37.10%   37.10%           
  Complexity      509      509           
=========================================
  Files           106      106           
  Lines          4282     4282           
  Branches        196      196           
=========================================
  Hits           1589     1589           
  Misses         2603     2603           
  Partials         90       90           

☔ 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 29a5105 into beta Nov 6, 2026
11 checks passed
@dargmuesli
dargmuesli deleted the fix/codegen/body-params branch November 6, 2026 23:05
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.

1 participant