blob: d5e5fcd79a9d601378dabb293429ad386d9a7fa6 [file] [log] [blame]
! 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
translations.hello.lang: conflicting values false and string (mismatched types bool and string):
./data.yaml:13:11
./vet.cue:3:25
./vet.cue:3:31
-- expect-stderr2 --
translations.hello.lang: incomplete value string
translations.hello.lang: conflicting values false and string (mismatched types bool and string):
./data.yaml:13:11
./vet.cue:3:25
./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: false
text: Hallo
---
translations:
hello:
lang: nl
text: Hallo
skip: true