diff --git a/src/cfnlint/jsonschema/_validators_cfn.py b/src/cfnlint/jsonschema/_validators_cfn.py index 54a6172dec..e7066e4ab6 100644 --- a/src/cfnlint/jsonschema/_validators_cfn.py +++ b/src/cfnlint/jsonschema/_validators_cfn.py @@ -354,7 +354,9 @@ def validate( return parameter_type = validator.context.parameters[value].type - schema_types = ensure_list(s.get("type", ["string"])) + schema_types = _resolve_type(validator, s) + if not schema_types: + return reprs = ", ".join(repr(type) for type in schema_types) if all(