Skip to content

Fix JsonDocuments equals implementation #629

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 11, 2025
Merged

Conversation

rhernandez35
Copy link
Contributor

The Document impls in JsonDocuments are records, so their default equals methods check that all the record members are equal. Since they all contain JsonSettings members, two JsonDocuments are only equal if they have the exact same JsonSettings instance.

@mtdowling
Copy link
Member

seems fine, just need to address some failing tests

rhernandez35 and others added 2 commits April 10, 2025 17:08
The Document impls in JsonDocuments are records, so their default
`equals` methods check that all the record members are equal. Since they
all contain JsonSettings members, two JsonDocuments are only equal if
they have the exact same JsonSettings instance.
@adwsingh adwsingh force-pushed the json-document-equals branch from 65a6a13 to 5db5a58 Compare April 11, 2025 00:54
@adwsingh adwsingh force-pushed the json-document-equals branch from 5db5a58 to 956dc17 Compare April 11, 2025 01:43
@adwsingh adwsingh enabled auto-merge (rebase) April 11, 2025 01:43
@adwsingh adwsingh merged commit 67a5cd1 into main Apr 11, 2025
2 checks passed
@adwsingh adwsingh deleted the json-document-equals branch April 11, 2025 01:53
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