blob: 4928f1b131a8276234f7f3b2cef70ab349a05171 [file] [log] [blame]
! cue vet -d '#File' vet.cue data.yaml
cmp stderr expect-stderr
-- expect-stderr --
translations.hello.lang: incomplete value (string):
./vet.cue:3:11
translations.hello.lang: conflicting values false and string (mismatched types bool and string):
./data.yaml:13:11
./vet.cue:3:11
field "skip" not allowed in closed struct:
./data.yaml:20:7
-- 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