blob: 0a79f468a96636d676725f51f7924e4d41dfd800 [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