Skip to content

[3.x] Fix YAML date coercion - #442

Merged
GrahamCampbell merged 2 commits into
3.xfrom
fix-yaml-date-coercion-3.x
Aug 23, 2026
Merged

[3.x] Fix YAML date coercion#442
GrahamCampbell merged 2 commits into
3.xfrom
fix-yaml-date-coercion-3.x

Conversation

@GrahamCampbell

Copy link
Copy Markdown
Contributor

Backport of #441. Unquoted date-shaped scalars such as an IAM policy Version were parsed into Date objects by the YAML schema and serialized into compiled templates as ISO 8601 strings, a date behind a file variable failed the whole configuration resolution, and the plugin-facing file reader and external $ref loads did not use the CloudFormation schema at all. Quoted and !!str values were never affected.

This carries the original commit from @mklenbw plus the review follow-ups from the 4.x pull request: the timestamp type stays available as an explicit !!timestamp tag, and the same schema now applies on every YAML parse path.

mklenbw and others added 2 commits August 23, 2026 22:59
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@GrahamCampbell
GrahamCampbell merged commit 935e222 into 3.x Aug 23, 2026
8 checks passed
@GrahamCampbell
GrahamCampbell deleted the fix-yaml-date-coercion-3.x branch August 23, 2026 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants