encoding/jsonschema: list support
This change adds support for arrays/lists to JSON Schema generation,
including support for both open and closed lists and literal list prefixes.
Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: Iee0a0e7a80a9d8db77608a72582f2520fb83452b
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1224261
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>