Coping with missing field #3276
Unanswered
hansbogert
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the following situation:
This works fine. Changing the second line to:
Results in:
Still as expected.
However, if we comment out the second line,
cue vet
succeeds.I thought the unification with true was pretty elegant in my case, but only after a while noticed this false positive.
What would be the idiomatic way to check that every field not ending in "B", should have a
...B
counterpart with the same value?The above behaviour with a missing but expected field not showing an error after vet or evaluation has been the biggest gotcha with Cue so far.
Beta Was this translation helpful? Give feedback.
All reactions