Replies: 2 comments
-
I see what you're intending here. This does not work, but if it did work it would be at the package level: https://tip.cuelang.org/docs/concepts/packages/ Files are only relevant in the context of scoping: https://tip.cuelang.org/docs/references/spec/#blocks
Here
So the embedding does not constrain the package value in the way you are expecting, because the constraints are relaxed for the purposes of embedding, and the result (the package value in this case) then closed. What you are looking for here is the
|
Beta Was this translation helpful? Give feedback.
-
This discussion has been migrated to cue-lang/cue#857. For more details about CUE's migration to a new home, please see cue-lang/cue#1078. |
Beta Was this translation helpful? Give feedback.
-
Given a file
test.cue
Initially I would have expected the
close
to apply a constraint to the entire file where no fields can be set, but this does not appear to be the case.This also means the following CUE snippet is valid
Should it be?
Beta Was this translation helpful? Give feedback.
All reactions