Skip to content

Conversation

@agarikana
Copy link
Contributor

@agarikana agarikana commented Oct 23, 2025

Issue #, if available:

Number type changes which add or remove trailing zeroes(ex:- 1 -> 1.0) in resource schema currently lead to a runtime error during Stateful check: "Comparing incoming context with literals or dynamic results wasn't possible PathAwareValues are not comparable int, float" from cfn-guard here.

resource-schema-guard-rail should not report that as a diff to cfn-guard in the first place.

Description of changes:
Set parameterignore_type_in_groups in DeepDiff to ignore number type changes.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@agarikana agarikana force-pushed the fix-number-type-false-positive branch from b89a016 to 1b1a22f Compare October 23, 2025 23:03
@agarikana agarikana added the bug Something isn't working label Oct 23, 2025
Copy link
Contributor

@ammokhov ammokhov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@agarikana agarikana merged commit 37a2f52 into aws-cloudformation:main Oct 30, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants