Skip to content
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

Fix empty list and empty dict handling #35

Merged
merged 1 commit into from
May 13, 2023

Conversation

cobaltine
Copy link
Owner

Empty lists and empty dicts were not previously considered to be values. This caused the entire path to an empty list or dict to be ignored.

JSON objects with or without empty list or dict values could cause jfpv1 hash collisions with similar objects up to version 0.12.2. Any release beyond v0.12.z should be considered backward-incompatible for cases where empty lists or dicts are present.

See the following issue for more details:
#33

Empty lists and empty dicts were not previously considered to be values.
This caused the entire path to an empty list or dict to be ignored.

JSON objects with or without empty list or dict values could cause jfpv1
hash collisions with similar objects up to version `0.12.2`. Any release
beyond `v0.12.z` should be considered backward-incompatible for cases
where empty lists or dicts are present.

See the following issue for more details:
#33
@cobaltine cobaltine linked an issue May 12, 2023 that may be closed by this pull request
@cobaltine cobaltine merged commit 6891909 into main May 13, 2023
7 checks passed
@cobaltine cobaltine deleted the 33-bug-hash-ignores-empty-list-fields-in-dictionary branch May 13, 2023 08:39
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.

BUG - hash ignores empty list fields in dictionary
1 participant