# https://cuelang.org/issues/2704

exec cue export schema.cue data.json
cmp stdout stdout.golden
exec cue vet schema.cue data.json
! stdout .

-- stdout.golden --
[
    "5",
    "value"
]
-- schema.cue --
#schema: [...=~"^[0-9]+$" | string]
#schema
-- data.json --
["5", "value"]
