encoding/jsonschema: adjust for net/url fix in go@master
Running Go at master, I suddenly noticed a few new failures here:
external_test.go:260: unexpectedly more correct behavior (test success) on skipped test
external_test.go:154: txtar:
exec cue def json+jsonschema: schema.json
! exec cue vet -c instance.json json+jsonschema: schema.json
-- schema.json --
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"format": "iri"
}
-- instance.json --
"http://2001:0db8:85a3:0000:0000:8a2e:0370:7334"
It turns out that this is due to the fix upstream for
https://github.com/golang/go/issues/31024.
We actually want the new and fixed behavior, but just like we did with
the fix supporting Unicode character classes in regular expressions,
continue tracking the behavior of stable Go (1.25) in testdata.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: Ib2c2121c01990ed9329082cbb059d976b38009b2
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1224252
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>