! cue vet ./vet.cue ./data.yaml
cmp stderr expect-stderr

! cue vet . ./data.yaml
cmp stderr expect-stderr2

-- 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
-- expect-stderr2 --
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
