Open FogDong opened 2 years ago
This is a blocker for KubeVela. CUE Team to investigate.
This one's priority is high because there's no workaround. I'll say this is a user-facing problem since we're generating docs from cue parameters for our users, and this issue blocks the generator. Hope this can be fixed in v0.6.
+1
@FogDong apologies for the delay in replying here.
To build on @mpvl's answer.
parameter
is not concrete as it is a disjunction.
To build on this, the critical point is that because parameter
is a disjunction (that cannot be resolved to a single item) it is, by definition, not a struct value. Even though it is a disjunction of two struct values, it is still ambiguous as to what Fields()
could/should return in this situation.
AFAICT, you did not specify what you expected to see.
To build on this too, we need to understand what list of fields you're expecting to see in this situation and why.
@FogDong: Could you specify what you expected to see in this case? AFAICT, the output is correct.
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest release?
yes
What did you do?
Here's the repro:
What did you see instead?