blob: 29d9e0a270bd04a542936bdbc08977377f5ae464 [file] [log] [blame]
! cue vet -d '#File' vet.cue data.yaml
cmp stderr expect-stderr
-- expect-stderr --
translations.hello.lang: incomplete value string
field not allowed: skip:
./data.yaml:20:1
./vet.cue:1:1
./vet.cue:1:8
-- vet.cue --
#File: {
translations: [string]: {
lang: string
text: string
}
}
-- data.yaml --
# translated messages
translations:
hello:
lang: gsw
text: Grüetzi
---
translations:
hello:
text: Hoi
---
translations:
hello:
lang: no
text: Hallo
---
translations:
hello:
lang: nl
text: Hallo
skip: true