Skip to content

Conversation

aesterline
Copy link
Contributor

Action and Resource allow both string and [string] as values. Support deserializing IamPolicyStatement with either of these values.

Issue #, if available:
fixes: #853

Description of changes:
I thought about changing the type of the action and resource fields to be another type that was an enumeration, but it felt like a backward breaking change and I wasn't sure that was acceptable. It seems like there are other cases of deserialize_with, so I thought I would give that approach a shot.

I'm happy to try a different way (enum or other) if that is preferable.

By submitting this pull request

  • I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • I confirm that I've made a best effort attempt to update all relevant documentation.

…tement`

`Action` and `Resource` allow both `string` and `[string]` as values.
Support deserializing `IamPolicyStatement` with either of these values.

fixes: awslabs#853
@aesterline aesterline force-pushed the fix/aesterline/string-or-string-slice branch from c5d2b20 to 5a94246 Compare April 2, 2024 20:43
@calavera
Copy link
Contributor

calavera commented Apr 3, 2024

The examples failure is unrelated to these changes. I'm fixing it in #855

Copy link
Contributor

@calavera calavera left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix!

@calavera calavera merged commit 4a3dbc9 into awslabs:main Apr 3, 2024
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.

ApiGatewayCustomAuthorizerResponse unable to deserialize example

2 participants