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

Ensure all elements of arrays are verified for uniqueness #875

Merged

Conversation

DrGFreeman
Copy link
Contributor

Fixes #866

Changes proposed in this PR:

  • Revert ed4693c to restore skipped tests.
  • Fix bug in _utils.uniq() function where the function would return (True) early if the first two items of the array are unique, preventing verification of other array items.

Fix bug where the function would return (True) early if the first two items of
the array are unique, preventing verification of other array items.
@codecov
Copy link

codecov bot commented Nov 4, 2021

Codecov Report

Merging #875 (1085b27) into main (ed4693c) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #875   +/-   ##
=======================================
  Coverage   98.33%   98.33%           
=======================================
  Files          19       19           
  Lines        3120     3121    +1     
  Branches      377      378    +1     
=======================================
+ Hits         3068     3069    +1     
  Misses         41       41           
  Partials       11       11           
Impacted Files Coverage Δ
jsonschema/tests/test_jsonschema_test_suite.py 100.00% <ø> (ø)
jsonschema/_utils.py 98.20% <100.00%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ed4693c...1085b27. Read the comment docs.

@Julian
Copy link
Member

Julian commented Nov 4, 2021

Thanks!

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.

uniqueItems check only validates the first two entries for types with a __len__ implementation
2 participants