-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
encoding/encoding/jsonschema: allow type number with int enum
This change adjusts the jsonschema logic to allow a number type to be combined with a numeric enum. Fixes #3173. Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: I4e2c63a51135fa3a59ec92d401b03295dc991306 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1199214 Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> Reviewed-by: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
- Loading branch information
Showing
2 changed files
with
12 additions
and
6 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