-
Notifications
You must be signed in to change notification settings - Fork 171
Erroneous closedness check for interpolated field+disjunction+Fill" #342
Comments
I have another repro case ... it's not just about interpolated field, it's about "dynamic" (?) fields
|
I'm able to reproduce it simulating Fill and Lookup, so not using the API:
It probably is much easier to fix this with the new evaluator. |
Hit this problem again, with a slight variation:
However, by making the disjunction fills optional, the problem seems to go away:
|
From @aluzzardi
Fill of v1.x + Validate(cue.Concrete) of v1 works |
This issue has been migrated to cue-lang/cue#342. For more details about CUE's migration to a new home, please see cue-lang/cue#1078. |
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
instance.Fill()
followed byinstance.Validate(cue.Concrete(true))
on a "dynamic" field with a disjunction.Given this configuration:
It will yield:
The full code and cue files to reproduce this issue can be found here:
https://gist.github.com/aluzzardi/5ee3a316593600c3eced3a3d37a66a94#file-main-go
The text was updated successfully, but these errors were encountered: