You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure if this is a bug or currently intended behavior, but I would like to be able to show all currently evaluated schema violations during vet, not just the first one. I know there are the -i and -E` flags but they don't appear to do what I want.
An example:
testschema.cue
#TestSchema: {
foo: "bar"
baz: int
}
test.json
{
"foo": "blah",
"baz": "5"
}
cue vet -i -E testschema.cue testschema.json -d '#TestSchema'
foo: conflicting values "bar" and "blah":
./testschema.cue:2:10
./testschema.json:2:12
whereas I would hope to get something like:
foo: conflicting values "bar" and "blah":
./testschema.cue:2:10
./testschema.json:2:12
baz: conflicting values "5" and int (mismatched types string and int):
./testschema.cue:3:10
./testschema.json:3:12
My main use case is for linting here, as I don't have to run vet after every single error I fix. I would just need to fix errors and if those fixes expose something further down the line that's alright.
The text was updated successfully, but these errors were encountered:
I am not sure if this is a bug or currently intended behavior, but I would like to be able to show all currently evaluated schema violations during vet, not just the first one. I know there are the
-E` flags but they don't appear to do what I want.
-i
andAn example:
testschema.cue
test.json
whereas I would hope to get something like:
My main use case is for linting here, as I don't have to run vet after every single error I fix. I would just need to fix errors and if those fixes expose something further down the line that's alright.
The text was updated successfully, but these errors were encountered: