pkg/encoding/json: fix validator
cuelang.org/cl/1208701 introduced a bug
where the call to Validate would refer to the
original schema value, instead of the unified
result. This could lead to spurious errors.
Fixes #3932
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: I03420535698b803c4f39a1a250c87243fdbb62be
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1215528
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>