fix(cloudformation): preserve unquoted YAML dates as text (#8120)

This commit is contained in:
Jackson Price authored and GitHub committed 2026-11-12 11:24:44 -04:00
1 parent c0a087a597
commit f3b61cc368
3 files changed
+80

No files matched your search

@@ -67,6 +67,8 @@ public class CloudFormationYamlParser {
register("!Length", n -> fnMap("Fn::Length", n));
register("!ToJsonString", n -> fnMap("Fn::ToJsonString", n));
register("!Transform", n -> fnMap("Fn::Transform", n));
// CloudFormation has no date type: an unquoted 2010-09-09 or 2012-10-17 is the text.
yamlConstructors.put(Tag.TIMESTAMP, yamlConstructors.get(Tag.STR));
}
private void register(String tag, NodeConverter converter) {