-
Notifications
You must be signed in to change notification settings - Fork 190
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
feat(fieldpath): Handle case differences in structure member names #522
feat(fieldpath): Handle case differences in structure member names #522
Conversation
Skipping CI for Draft Pull Request. |
205f270
to
8efc8b8
Compare
This patch updates the `memberShapeRef` function in the `fieldpath` package to handle case differences between struct member names in the ACK model and the AWS SDK Model. Previously, the function assumed that member names in the ACK model and AWS SDK model were identical. However, this is not always the case, as some field names may have different casing (e.g `AWSVPCConfiguration` in the ACK model and `AwsVpcConfiguration` in the AWS SDK model). To address this issue, the function now leverages `strings.EqualFold` to compare the member names case isensitively. Signed-off-by: Amine Hilaly <hilalyamine@gmail.com>
8efc8b8
to
d11714d
Compare
/retest |
3 similar comments
/retest |
/retest |
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: a-hilaly, jlbutler The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This patch updates the
memberShapeRef
function in thefieldpath
package to handle case differences between struct member names in the
ACK model and the AWS SDK Model.
Previously, the function assumed that member names in the ACK model and
AWS SDK model were identical. However, this is not always the case, as
some field names may have different casing (e.g
AWSVPCConfiguration
inthe ACK model and
AwsVpcConfiguration
in the AWS SDK model).To address this issue, the function now leverages
strings.EqualFold
tocompare the member names case isensitively.
Signed-off-by: Amine Hilaly hilalyamine@gmail.com
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.