encoding/jsonschema: use more generic `siblings` function
We want to be able to merge `anyOf` (and potentially `oneOf`)
items as well as `allOf`, so refactor `conjuncts` into `siblings`
which can do all the above.
Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: Ia7aaed4b85e46a38aaba455033d4093cf6ebd160
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1224301
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>