Skip to content

Conversation

@dreamorosi
Copy link
Contributor

@dreamorosi dreamorosi commented Nov 15, 2025

Summary

Changes

Please provide a summary of what's being changed

This PR updates the logic of the converter for API Gateway REST to account for query string values that are present multiple times.

Before this PR the values were repeated when passed to the route handler because they appeared both in the queryString and multiValueQueryString lists. Now the values are filtered and only one appears.

In the process, I also had to refactor the proxyEventV1ToWebRequest function beyond this specific change to reduce its cognitive complexity and please SonarQube.

Please add the issue number below, if no issue is present the PR might get blocked and not be reviewed

Issue number: closes #4750


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@dreamorosi dreamorosi requested a review from svozza November 15, 2025 00:44
@dreamorosi dreamorosi self-assigned this Nov 15, 2025
@boring-cyborg boring-cyborg bot added event-handler This item relates to the Event Handler Utility tests PRs that add or change tests labels Nov 15, 2025
@pull-request-size pull-request-size bot added the size/M PR between 30-99 LOC label Nov 15, 2025
@sonarqubecloud
Copy link

@svozza svozza merged commit 5d3cf2d into main Nov 15, 2025
37 checks passed
@svozza svozza deleted the fix/multi_headers branch November 15, 2025 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

event-handler This item relates to the Event Handler Utility size/M PR between 30-99 LOC tests PRs that add or change tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: duplicate query string parameters when multiple occurrences are present

2 participants