Skip to content

Fix bug where queryParams was ignored if there were no other params#4346

Merged
rcoh merged 2 commits intomainfrom
fix-map-query-params
Oct 13, 2025
Merged

Fix bug where queryParams was ignored if there were no other params#4346
rcoh merged 2 commits intomainfrom
fix-map-query-params

Conversation

@rcoh
Copy link
Collaborator

@rcoh rcoh commented Oct 10, 2025

Motivation and Context

There was an ancient bug where requests @httpQueryParams was ignored if no other query params were set.

Description

Fix buggy short-circuit so that query param logic was generated.

Testing

  • Protocol test

Checklist

  • For changes to the smithy-rs codegen or runtime crates, I have created a changelog entry Markdown file in the .changelog directory, specifying "client," "server," or both in the applies_to key.
  • For changes to the AWS SDK, generated SDK code, or SDK runtime crates, I have created a changelog entry Markdown file in the .changelog directory, specifying "aws-sdk-rust" in the applies_to key.

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

@rcoh rcoh force-pushed the fix-map-query-params branch from 53d461d to 80cb631 Compare October 10, 2025 20:10
@rcoh rcoh marked this pull request as ready for review October 10, 2025 20:10
@rcoh rcoh requested review from a team as code owners October 10, 2025 20:10
@github-actions
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

Copy link
Contributor

@ysaito1001 ysaito1001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

isTestingEnabled=true
# codegen publication version
codegenVersion=0.1.4
codegenVersion=0.1.5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can keep 0.1.4, since the most recent release is 0.1.3 (hope CI will pass with 0.1.4)

@github-actions
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

@rcoh rcoh force-pushed the fix-map-query-params branch from f05e4aa to bf7f54e Compare October 13, 2025 17:25
@rcoh rcoh requested a review from jasgin October 13, 2025 17:26
@github-actions
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

@rcoh rcoh merged commit 0438c1b into main Oct 13, 2025
50 checks passed
@rcoh rcoh deleted the fix-map-query-params branch October 13, 2025 18:02
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.

3 participants