aws-cloudformation / cloudformation-cli

The CloudFormation Provider Development Toolkit allows you to author your own resource providers and modules that can be used by CloudFormation.
Apache License 2.0
316 stars 157 forks source link

Traver doesn't handle patternProperties #982

Open kddejong opened 1 year ago

kddejong commented 1 year ago

When defining an object type with patternProperties the function traverse_raw_schema will fail and will cause an error to be thrown when doing cfn test. Error Malformed Schema or incorrect path provided

https://github.com/aws-cloudformation/cloudformation-cli/blob/da2edbd38b1e52ade8bfac5abc6b52449b198201/src/rpdk/core/jsonutils/utils.py#L193-L198