Validate keys in a dictionary against other values elsewhere #3123
Unanswered
jamieforrest
asked this question in
Q&A
Replies: 1 comment
-
Hello,
The list comprehension extracts the
Note also that trailing commas are not required. |
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
-
I would like to have a definition for a dictionary where all of the keys in the dictionary must be string values from another definition in the cue file.
Let's say I have a cue file like the one below (I know this is invalid, but it expresses what I want to do):
What I am trying to do here is specify that any key in the
#Routes
definition must be one of the#Box
labels in the list ofboxes
above it. Is it possible to do this in cue?Beta Was this translation helpful? Give feedback.
All reactions