encoding/openapi: rewrite uses of deprecated cue.Value methods
cue.Value.Reference can be rewritten with cue.Value.ReferencePath,
and cue.Value.Elem can be rewritten with cue.Value.LookupPath
with either cue.AnyString or cue.AnyIndex, depending on whether
the value is a struct or a list.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I092707aafe89feb4dbf3e7fd9980f0deb73940a4
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1206354
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Paul Jolly <paul@myitcv.io>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>