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
[x] I confirm that my contribution is made under the terms of the Apache 2.0 license.
[x] I confirm that I've made a best effort attempt to update all relevant documentation.
Action
andResource
allow bothstring
and[string]
as values. Support deserializingIamPolicyStatement
with either of these values.Issue #, if available: fixes: https://github.com/awslabs/aws-lambda-rust-runtime/issues/853
Description of changes: I thought about changing the type of the
action
andresource
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 ofdeserialize_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