blob: f62a4d965f9a91187327e1765b8bc9713b4ab2c8 [file] [log] [blame]
skip 'error messages/ missed disallowed field'
! cue vet -d '#File' vet.cue data.yaml
cmp stderr expect-stderr
-- expect-stderr --
translations.hello.lang: incomplete value string
translations.hello.lang: conflicting values false and string (mismatched types bool and string)
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