Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
encoding/jsonschema: add test case for issue 3176
The current logic gets the disjunction wrong when generating CUE for jsonschema when there's a oneOf that is then modified by an additional constraint. Specifically the resulting schema does not allow a string value when it should. This CL adds a test case that will be fixed in a subsequent CL. For #3176. Signed-off-by: Roger Peppe <[email protected]> Change-Id: I96a24d981fb4a90c55c9f09bee6db1bbde047648 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1199400 TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Daniel Martí <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
- Loading branch information