| ! 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) |
| -- expect-stderr2 -- |
| translations.hello.lang: incomplete value string |
| translations.hello.lang: conflicting values false and string (mismatched types bool and string) |
| -- 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 |