Skip to content

[BugFix]: discovered bug in loader when handling type casted nulls - #420

Merged
joshfried-aws merged 1 commit into
aws-cloudformation:mainfrom
joshfried-aws:main
Nov 29, 2023
Merged

joshfried-aws merged 1 commit into
aws-cloudformation:mainfrom
joshfried-aws:main

Conversation

@joshfried-aws

Copy link
Copy Markdown
Contributor

Issue #, if available:
N/A

Description of changes:
After working on #418 I had noticed there was a logical error when handling type casted null values in the loader.

Previously we would return a bad value for any value other than null or ~ when casted using !!null this should not be the case, and we should in fact cast any value here into null regardless of what follows.

I have updated the tests to reflect this change as well


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@joshfried-aws
joshfried-aws merged commit 8cb2ca9 into aws-cloudformation:main Nov 29, 2023
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.

3 participants