-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
encoding/jsonschema: allow whole floats for unsigned numbers
JSON does not make a distinction between floats and ints, and there are tests in the jsonschema test suite that check that it's OK to use floating point literals in primitives that expect an integer. So accept whole floats anywhere we need a uint. Relevant issue: #253. Signed-off-by: Roger Peppe <[email protected]> Change-Id: I44632a6eadd2aeaff626b27ca6536d4aa47035aa Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1200939 Unity-Result: CUE porcuepine <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Daniel Martí <[email protected]>
- Loading branch information
Showing
23 changed files
with
81 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Generated by teststats. DO NOT EDIT | ||
v2: | ||
schema extract (pass / total): 1020 / 1637 = 62.3% | ||
tests (pass / total): 3338 / 7175 = 46.5% | ||
tests on extracted schemas (pass / total): 3338 / 3752 = 89.0% | ||
schema extract (pass / total): 1040 / 1637 = 63.5% | ||
tests (pass / total): 3378 / 7175 = 47.1% | ||
tests on extracted schemas (pass / total): 3378 / 3792 = 89.1% | ||
|
||
v3: | ||
schema extract (pass / total): 1008 / 1637 = 61.6% | ||
tests (pass / total): 3289 / 7175 = 45.8% | ||
tests on extracted schemas (pass / total): 3289 / 3708 = 88.7% | ||
schema extract (pass / total): 1028 / 1637 = 62.8% | ||
tests (pass / total): 3329 / 7175 = 46.4% | ||
tests on extracted schemas (pass / total): 3329 / 3748 = 88.8% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.