Coping with missing field #3276
Unanswered
hansbogert
asked this question in
Q&A
Replies: 1 comment
-
|
alias |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
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 vetsucceeds.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
...Bcounterpart 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