encoding/jsonschema: initial support for Kubernetes CRDs master
This CL introduces a new JSON Schema "version" dedicated to translating CRD schemas. We add all the relevant keywords but leave most of them as TODOs. We implement some of the easier checks but leave harder ones (structural schema checking, for example) for later. The main short-term TODO is support for `x-kubernetes-embedded-resource`, as most other things are less strict than needed currently, so can be punted for now. Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: I2a66ba0007a2401357dcae151dab15bd45f72b24 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1211200 TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>