| skip 'error messages' |
| |
| ! cue vet schema.cue data.yaml |
| cmp stderr vet-stderr |
| |
| ! cue export schema.cue data.yaml |
| cmp stderr export-stderr |
| |
| -- schema.cue -- |
| #Language: { |
| tag: string |
| name: =~"^\\p{Lu}" // Must start with an uppercase letter. |
| } |
| languages: [...#Language] |
| |
| -- data.yaml -- |
| languages: |
| - tag: en |
| name: English |
| - tag: nl |
| name: dutch |
| - tag: no |
| name: Norwegian |
| |
| -- vet-stderr -- |
| languages.2.tag: conflicting values false and string (mismatched types bool and string) |
| languages.1.name: invalid value "dutch" (out of bound =~"^\\p{Lu}"): |
| ./schema.cue:3:8 |
| -- export-stderr -- |
| languages.2.tag: conflicting values false and string (mismatched types bool and string) |
| languages.1.name: invalid value "dutch" (out of bound =~"^\\p{Lu}"): |
| ./schema.cue:3:8 |