Repository navigation
Fix search parameter names and filter_by in search - #1550
Closed
balloobbot wants to merge 1 commit into
Closed
balloobbot wants to merge 1 commit into
balloobbot wants to merge 1 commit into
Conversation
search() sent the multi-word parameters in snake_case, for example name_exact and bitrate_min. The API expects camelCase names, such as nameExact and bitrateMin. It ignored the snake_case names, so these filters had no effect. search() now sends the camelCase names. The Python argument names do not change. search() appended filter_by and filter_term to the stations/search path. The API has no by* paths under stations/search and returns 404 for each of them. search() now sends filter_by as the matching search query parameters. filter_by overrides the explicit value and exact flag for the same field. The search endpoint has no parameter for FilterBy.UUID and no partial codec match for FilterBy.CODEC, so search() raises ValueError for these values. It also raises ValueError when filter_by is set without filter_term. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Sep 30, 2026
Owner
|
Thanks! Verified the camelCase names and the 404 on the ../Frenck Blogging my personal ramblings at frenck.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Changes
Station search ignored the exact-match and bitrate filters. It sent their names in snake_case, but the API expects camelCase. Search with a filter-by field always failed, because the API has no such paths under the search endpoint. Search now sends the correct names and turns filter-by into query parameters.
The API ignores the snake_case names without an error:
Every filter-by path under the search endpoint returns 404:
Related Issues
None.
🤖 Generated with Claude Code