-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
encoding/jsonschema: implement if/then/else keywords
Use the newly added `matchIf` builtin to implement the JSON Schema conditional operator. Signed-off-by: Roger Peppe <[email protected]> Change-Id: I0a64a67683d573f4bc348fb6704f7b18ac3339a7 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1200945 TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Daniel Martí <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
- Loading branch information
Showing
21 changed files
with
216 additions
and
595 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
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): 1040 / 1637 = 63.5% | ||
tests (pass / total): 3378 / 7175 = 47.1% | ||
tests on extracted schemas (pass / total): 3378 / 3792 = 89.1% | ||
schema extract (pass / total): 1072 / 1637 = 65.5% | ||
tests (pass / total): 3457 / 7175 = 48.2% | ||
tests on extracted schemas (pass / total): 3457 / 3874 = 89.2% | ||
|
||
v3: | ||
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% | ||
schema extract (pass / total): 1060 / 1637 = 64.8% | ||
tests (pass / total): 3408 / 7175 = 47.5% | ||
tests on extracted schemas (pass / total): 3408 / 3830 = 89.0% |
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.