This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
Replies: 2 comments 9 replies
-
You would typically write something like:
|
Beta Was this translation helpful? Give feedback.
9 replies
-
This discussion has been migrated to cue-lang/cue#961. For more details about CUE's migration to a new home, please see cue-lang/cue#1078. |
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
-
Hi,
I am not sure if this is possible at all, but here's my use case: given an input
YAML
file I want to validate that if propertytype
is set to "A"aConfig
must be provided (but notbConfig
) and visa versa. Here's an attempt to show what I'm trying to do but note that the definition does not work:And given this
yaml
it should fail validation:Is this possible at all?
Beta Was this translation helpful? Give feedback.
All reactions