blob: 64bd72273c023ad1c42bf8416265984962a955ab [file] [log] [blame]
! 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"
}