Skip to content

Conversation

nated0g
Copy link

@nated0g nated0g commented Oct 10, 2025

Motivation and Context

#4338

Description

fixes a couple stray compilation errors in @haydenbaker's PR (#4341), and adds a test, adds changelog entry

Testing

Added a test in FluentClientGeneratorTest.kt to verify the bug no longer exists

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.

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

haydenbaker and others added 6 commits October 10, 2025 09:58
The setterName() extension function now requires a symbolProvider parameter.
Updated call sites to pass the correct symbolProvider.
Verifies that structures with a 'meta' field get properly renamed to
'meta_value' with corresponding setter/getter methods to avoid conflicts
with error metadata fields.
Use setterName() extension function instead of manually constructing
setter names to handle field renaming (e.g. default -> default_value).
@nated0g nated0g requested review from a team as code owners October 10, 2025 18:10
@nated0g nated0g changed the title Fix builder accessors fix: builder accessor method naming conflicts Oct 10, 2025
Copy link
Contributor

@landonxjames landonxjames left a comment

Choose a reason for hiding this comment

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

Assuming that commit I did for the ktlint issues works this all looks good to me. Will require a review from the server team as well.

Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

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.

4 participants