From 226169e6881f545d0d5d44ae90470f879745ae72 Mon Sep 17 00:00:00 2001 From: Kevin DeJong Date: Wed, 10 Jul 2024 09:09:18 -0700 Subject: [PATCH] Force resolve validation to not use strict types --- src/cfnlint/rules/functions/_BaseFn.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cfnlint/rules/functions/_BaseFn.py b/src/cfnlint/rules/functions/_BaseFn.py index 2e4e118997..99dce4adf4 100644 --- a/src/cfnlint/rules/functions/_BaseFn.py +++ b/src/cfnlint/rules/functions/_BaseFn.py @@ -63,6 +63,11 @@ def resolve( key, _ = self.key_value(instance) return_err: ValidationError | None = None + validator = validator.evolve( + context=validator.context.evolve( + strict_types=False, + ), + ) for value, v, resolve_err in validator.resolve_value(instance): if resolve_err: yield resolve_err