Required Fields and Struct Disjunctions #2341
Unanswered
brandoshmando
asked this question in
Q&A
Replies: 1 comment
-
|
FWIW, when providing the ID, it does output the correct struct. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm playing around with required fields to get a feel for how they operate and I'm running into a case where I'd expect one concrete output but I'm getting another non-concrete output.
Given the following:
I'd expect the following concrete output:
Because this represents the "most concrete" possible value.
Instead I'm getting an incomplete value:
I'd expect cue to recognize the most concrete path and output that value.
Am I misinterpreting how required fields should be working in this case? It seems that the most concrete path isn't being output. Tip Playground link -> https://tip.cuelang.org/play/?id=3PZ4BLMJxHQ#cue@export@cue
Beta Was this translation helpful? Give feedback.
All reactions