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

Handle multipleOf overflow #746

Merged
merged 1 commit into from
Oct 5, 2020

Conversation

Zac-HD
Copy link
Member

@Zac-HD Zac-HD commented Oct 4, 2020

Fixes #743, by falling back to use of Fractions on float overflow.

This passes both the required and the optional test from json-schema-org/JSON-Schema-Test-Suite#438

@codecov
Copy link

codecov bot commented Oct 4, 2020

Codecov Report

Merging #746 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #746   +/-   ##
=======================================
  Coverage   96.02%   96.02%           
=======================================
  Files          17       17           
  Lines        2664     2668    +4     
  Branches      310      310           
=======================================
+ Hits         2558     2562    +4     
  Misses         87       87           
  Partials       19       19           
Impacted Files Coverage Δ
jsonschema/tests/test_jsonschema_test_suite.py 93.02% <ø> (ø)
jsonschema/_validators.py 99.54% <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 58259e7...46db62a. Read the comment docs.

@Zac-HD Zac-HD force-pushed the multipleOf-overflow branch from 1436b56 to 46db62a Compare October 4, 2020 23:36
@Julian
Copy link
Member

Julian commented Oct 5, 2020

O the naïveté of our youth -- we bid you farewell...

Thanks :)!

@Julian Julian merged commit e48d56c into python-jsonschema:master Oct 5, 2020
@Zac-HD
Copy link
Member Author

Zac-HD commented Oct 5, 2020

Happy to help!

Guess I'll have to update https://hypofuzz.com/example-dashboard/failing.html, but that's OK... I might just add a link to the issue 😉

@Zac-HD Zac-HD deleted the multipleOf-overflow branch October 5, 2020 00:06
@Julian
Copy link
Member

Julian commented Oct 5, 2020

Oh. Fun. That looks nice.

@Zac-HD Zac-HD mentioned this pull request Jun 2, 2021
Julian added a commit that referenced this pull request Jun 2, 2021
Julian added a commit that referenced this pull request Jan 31, 2025
4ba013d5 Merge pull request #747 from santhosh-tekuri/duration
aa500e80 Merge pull request #749 from json-schema-org/gregsdennis/json-everything-update
eb8ce976 Merge pull request #757 from ajevans99/main
dcdae5c0 Merge pull request #758 from sirosen/hostname-format-check-empty-string
db21d21b Merge branch 'main' into hostname-format-check-empty-string
3fd78f04 Merge pull request #1 from ajevans99/swift-json-schema
3cada3a9 Update README.md
82a07749 Merge pull request #753 from json-schema-org/ether/fix-draft-locations
a66d23d4  move draft-specific files to the dedicated dir for its draft
8ef15501 Merge pull request #751 from big-andy-coates/format_tests_under_format
fe1b1392 All format test cases should be under the `format` directory.
b1ee90f6 json-everything moved to an org
c00a3f94 test: duration format must start with P
9fc880bf Merge pull request #740 from notEthan/format-pattern-control-char
cbd48ea5 Simplify test of \a regex character to test directly against `pattern` schema
d6f1010a Merge pull request #746 from json-schema-org/annotations
4aec22c1 Revert the changes to additionalProperties.json.
2dc10671 Move the workflow step title.
d9ce71ac May as well also show quotes in the annotation.
1b719a84 Pick the line after the description when attaching spec annotations.
08105151 Markdown is apparently not (yet?) supported in annotations.
81645773 Tidy up the specification annotator a bit.
38628b79 Make the spec URLs structure a bit easier for internal use.
4ebbeaf4 Merge branch 'Era-cell/main'
e4bd7554 dumbness2 corrected
d8ade402 inside run
57c7c869 changed install location
11f8e511 Added installing command in workflow
f2766616 template library, url loads changes
c2badb12 Merge pull request #734 from OptimumCode/idn-hostname-arabic-indic-mixed
dd9599a5 Merge branch 'main' of github.com:json-schema-org/JSON-Schema-Test-Suite
5b393436 add pr dependencies action
3a509007 Clear existin annotations on same PR
23674123 Cases for rfc and iso written separately
0b780b2c Corected yaml format
2b1ffb74 Best practices followed with optimized code
e88a2da6 Works for all OS
7b40efe4 Base path for neighbouring file?
564e6957 Walking through all leaf files
7b84fb44 Merge branch 'main' of https://github.com/Era-cell/JSON-Schema-Test-Suite
891d0265 First workflow2
1c175195 regex correction
96f7683a Final correction2 - file names beautufied
5f050a07 Final correction1
77527b63 Stupidity corrected
eb8fd760 Branch name specified
540a269b Log2
f29d090a Wrong location sepcification
582e12be logging logs check
df3bdecc path corrected
c6b937ca Reading all jsons and spec urls added
cbdd1755 change day2
79dc92f1 TOKEN
ce52852d Python file location changed
3558c2c6 Fake add to tests
eecc7b7a Merge branch 'main' of https://github.com/Era-cell/JSON-Schema-Test-Suite
810d148a First workflow2
4eac02c7 First workflow
40bcb8b3 Corrected replaced unevaluated with additoinalProperties
4ae14268 Add valid first character to avoid Bidi rule violation
202d5625 test: hostname format check fails on empty string

git-subtree-dir: json
git-subtree-split: 4ba013d58e747ecaf48c8bb7cf248cb0d564afbc
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.

Unhandled OverflowError when checking multipleOf with large numbers
2 participants