Replies: 2 comments 1 reply
-
Not sure of the answer without digging in further myself. It could be helpful to pretty print |
Beta Was this translation helpful? Give feedback.
-
For posterity - this appears to be the expected, if undocumented behavior of This can produce somewhat surprising results. If, after default removal, the disjunction is removed (only a single branch remains) - as in the example case - then On the plus side, this ends up meaning that, between |
Beta Was this translation helpful? Give feedback.
-
I came across this behavior, which I don't understand. In case it's correct, can someone explain?
Output:
https://play.golang.org/p/oEgelO--Mcw
Why exactly is
e.Expr()
acue.NoOp
, but still got an operand, that itself has a different expr (cue.SelectorOp
)?I would have expected
e.Expr()
to give ancue.OrOp
, given the disjunction in the CUE code.Beta Was this translation helpful? Give feedback.
All reactions