blob: e9f202ab6c8b190122f6c577195066287ae48efb [file] [log] [blame]
! cue vet schema.cue data.yaml
cmp stderr vet-stderr
! cue export schema.cue data.yaml
cmp stderr export-stderr
-- schema.cue --
#Language: {
tag: string
name: =~"^\\p{Lu}" // Must start with an uppercase letter.
}
languages: [...#Language]
-- data.yaml --
languages:
- tag: en
name: English
- tag: nl
name: dutch
- tag: no
name: Norwegian
-- vet-stderr --
languages.1.name: invalid value "dutch" (out of bound =~"^\\p{Lu}"):
./schema.cue:3:8
./data.yaml:5:12
-- export-stderr --
languages.1.name: invalid value "dutch" (out of bound =~"^\\p{Lu}"):
./schema.cue:3:8
./data.yaml:5:12