Skip to content

Validate search limit against the new maximum of 10 - #864

Merged
joostlek merged 1 commit into
mainfrom
ccr-af58c15a-nqvsya-search-limit
Oct 30, 2026
Merged

joostlek merged 1 commit into
mainfrom
ccr-af58c15a-nqvsya-search-limit

Conversation

@joostlek

Copy link
Copy Markdown
Owner

Proposed Changes

The February 2026 Web API changes lowered the Search limit maximum from 50 to 10. A higher limit makes Spotify return an error, which then surfaced as a confusing deserialization failure.

search() now raises ValueError when limit is outside 1–10, matching how the library already validates batch sizes elsewhere. The default of 5 already matches Spotify's new default.

The new tests fail on main and pass with this change.

Related Issues


Generated by Claude Code

@joostlek joostlek added the bugfix Inconsistencies or issues which will cause a problem for users or implementers. label Oct 30, 2026 — with Claude
@sonarqubecloud

Copy link
Copy Markdown

@joostlek
joostlek merged commit d3121d5 into main Oct 30, 2026
14 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bugfix Inconsistencies or issues which will cause a problem for users or implementers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants