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
Originally posted by sahroshan January 11, 2023
Hi All,
I have been trying to use cue to valiidate another cue. Cuelang report errors for defined keys. But not when there is an extra key at root level. Below are the steps to reproduce it.
steps to reproduce
create a schema file
-- schema.cue
#Config: close({
foo: close({
bar: string | *"default from schema"
})
})
#Config
create simple cue file
-- sub.cue
extra: "this extra field"
run vet command cue vet sub.cue schema.cue
expected
error extra field found in cue
got
cue vet exits without any error
Am i doing something wrong here? Please suggest possible fixes or workarounds
The text was updated successfully, but these errors were encountered:
Discussed in #2211
Originally posted by sahroshan January 11, 2023
Hi All,
I have been trying to use cue to valiidate another cue. Cuelang report errors for defined keys. But not when there is an extra key at root level. Below are the steps to reproduce it.
steps to reproduce
cue vet sub.cue schema.cue
expected
error
extra
field found in cuegot
cue vet exits without any error
Am i doing something wrong here? Please suggest possible fixes or workarounds
The text was updated successfully, but these errors were encountered: