| ! cue vet -l 'strings.ToLower(kind)' -l name services.jsonl services.cue |
| cmp stderr expect-stderr |
| -- expect-stderr -- |
| deployment.Booster.name: invalid value "Booster" (out of bound !~"^[A-Z]"): |
| ./services.cue:1:29 |
| ./services.jsonl:3:13 |
| service."Supplement\nfoo".name: invalid value "Supplement\nfoo" (out of bound !~"^[A-Z]"): |
| ./services.cue:2:26 |
| ./services.jsonl:3:13 |
| -- services.cue -- |
| deployment: [string]: name: !~"^[A-Z]" |
| service: [string]: name: !~"^[A-Z]" |
| |
| -- services.jsonl -- |
| { |
| "kind": "Service", |
| "name": "booster" |
| } |
| { |
| "kind": "Deployment", |
| "name": "Booster", |
| "replicas": 1 |
| } |
| { |
| "kind": "Service", |
| "name": "Supplement\nfoo" |
| } |