Skip to content

fix: stringify numeric list values in query_param_matcher - #827

Closed
Shubham-Padkonde wants to merge 1 commit into
getsentry:masterfrom
Shubham-Padkonde:fix/query-param-matcher-numeric-list-values
Closed

Shubham-Padkonde wants to merge 1 commit into
getsentry:masterfrom
Shubham-Padkonde:fix/query-param-matcher-numeric-list-values

Conversation

@Shubham-Padkonde

Copy link
Copy Markdown

query_param_matcher converted top-level int/float values to str to match what requests sends, but left numbers inside list values untouched, so query_param_matcher({"ids": [1, 2]}) never matched a request made with params={"ids": [1, 2]} (request.params is {"ids": ["1", "2"]}).

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Other

Description

Related Issues

  • Closes #

PR checklist

Before submitting this pull request, I have done the following:

Added/updated tests?

Current repository has 100% test coverage.

  • Yes
  • No, and this is why:
  • I need help with writing tests

query_param_matcher converted top-level int/float values to str to match
what requests sends, but left numbers inside list values untouched, so
query_param_matcher({"ids": [1, 2]}) never matched a request made with
params={"ids": [1, 2]} (request.params is {"ids": ["1", "2"]}).
@markstory

Copy link
Copy Markdown
Member

Duplicate of #816

@markstory markstory marked this as a duplicate of #816 Sep 24, 2026
@markstory markstory closed this Sep 24, 2026
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.

2 participants