Skip to content

Fix RawYAMLObject.Equals#613

Merged
rhysd merged 1 commit intorhysd:mainfrom
michaelgruenewald:fix-yamlobject-equals
Feb 7, 2026
Merged

Fix RawYAMLObject.Equals#613
rhysd merged 1 commit intorhysd:mainfrom
michaelgruenewald:fix-yamlobject-equals

Conversation

@michaelgruenewald
Copy link
Contributor

This fixes comparing two RawYAMLObject's: Before, if o was something like {a: 1, b: 2} and other was {a: 1, b: 2, c: 3} then these would incorrectly be treated as equal because the algorithm only looked at the property keys in o. Checking that both have the same number of properties upfront fixes that.

closes #523

Copy link
Owner

@rhysd rhysd left a comment

Choose a reason for hiding this comment

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

Ah, thank you for catching this.

@rhysd rhysd merged commit 09817a9 into rhysd:main Feb 7, 2026
16 checks passed
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.

False-Positive duplicate matrix config

2 participants