encoding/openapi: attempt round-trip of generated OpenAPI schema master
Reading through the encoding/openapi code, it was clear that there were some mistakes that weren't being caught by the tests, notably a misspelling of `allOf` as `allOff`. Here we add a sanity check to the txtar tests that we can actually translate the resulting schema back to CUE again. We can then see that round-tripping does indeed fail in some cases. We'll fix those cases in subsequent CLs. While we're about it, use the non-deprecated `Generate` function as the primary entry point for testing. Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: Ied10e2c744960d757071145ef6cf1b29762d4346 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1220859 Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Matthew Sackman <matthew@cue.works>