Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve nested fields path and type resolution (#490)
This commit improves the `getAttributeFromPath` function by introducing a better field path and type resolution mechanism. Now, it considers aadditional fallback naming conventions, particularly for cases involving lists. This is needed to generate type references for `Distribution` resource in ACK CloudFront controller. More specifically, the CF API Schema for the `Distribution` resource is naming the `FunctionAssociations` shape `FunctionAssociationsList`. Tested with cloudfront-controller using the following config: ```yaml resources: Distribution: fields: DistributionConfig.DefaultCacheBehavior.FunctionAssociations.Items.FunctionARN: references: resource: Function path: Status.ACKResourceMetadata.ARN ``` Signed-off-by: Amine Hilaly <[email protected]> By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
- Loading branch information