Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for error-correcting builders #2991

Merged
merged 3 commits into from
Sep 20, 2023
Merged

Add support for error-correcting builders #2991

merged 3 commits into from
Sep 20, 2023

Conversation

rcoh
Copy link
Collaborator

@rcoh rcoh commented Sep 19, 2023

Motivation and Context

To implement #1767 we need to support error-correction to default values when instantiating builders.

Description

Adds pub(crate) correct_errors_<shape> method that will be used in deserialization to set default values for required fields when not set in the serialized response. This only applies to client via ClientBuilderInstantiator

Testing

  • added a new test that's fairly exhaustive

Checklist

  • I have updated CHANGELOG.next.toml if I made changes to the smithy-rs codegen or runtime crates
  • I have updated CHANGELOG.next.toml if I made changes to the AWS SDK, generated SDK code, or SDK runtime crates

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 requested review from a team as code owners September 19, 2023 17:27
@github-actions
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

@rcoh rcoh added this pull request to the merge queue Sep 20, 2023
Merged via the queue into main with commit 1771dbd Sep 20, 2023
41 checks passed
@rcoh rcoh deleted the error-correction branch September 20, 2023 17:44
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