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

Handle case where AwsClientParameters is a dict #14438

Merged
merged 2 commits into from
Jul 1, 2024
Merged

Conversation

bunchesofdonald
Copy link
Contributor

This is the 2.x side of #13819, the issue here presented the same, but was slightly different. Similar to the 3.x side, the crux of the problem is Pydantic + nested blocks with a Union. In this case though the issue was presenting as the AwsClientParameters being a dict on the credentials rather than an instance of the class. This adds a validator to check for this case and create an instance from the dict.

Closes #14147

Copy link
Collaborator

@zzstoatzz zzstoatzz left a comment

Choose a reason for hiding this comment

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

nice!

@bunchesofdonald bunchesofdonald merged commit 5de898d into 2.x Jul 1, 2024
14 checks passed
@bunchesofdonald bunchesofdonald deleted the issue-14147 branch July 1, 2024 19:24
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