blob: d3d90bd77c648aa89f7f199501e76477c6825efd [file] [log] [blame]
! cue vet ./vet.cue ./data.yaml
cmp stderr expect-stderr
! cue vet . ./data.yaml
cmp stderr expect-stderr
-- expect-stderr --
translations.hello.lang: incomplete value (string):
./vet.cue:3:31
translations.hello.lang: conflicting values false and string (mismatched types bool and string):
./data.yaml:13:11
./vet.cue:3:31
-- vet.cue --
package foo
translations: [string]: lang: string
File :: {
translations: {...}
}
-- 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