cue-lang / docs-and-content

A place to discuss, plan, and track documentation on cuelang.org
5 stars 1 forks source link

docs/howto: Ensuring a list is a subset of another list #169

Open jpluscplusm opened 1 month ago

jpluscplusm commented 1 month ago

A Commented CUE guide that demonstrates this solution to the problem:

import "list"

allowed_values: ["a", "b", "c"]
my_values: [...or(allowed_values)]
my_values: ["a", "nope"]

Notes:

jpluscplusm commented 1 month ago

@sa-spag is going to give writing this guide a try 👍 🎉

jpluscplusm commented 2 weeks ago

@sa-spag Hey there 👋 Just a friendly check-in ... did you manage to get anywhere with writing this How-to Guide? :-)

sa-spag commented 2 weeks ago

@sa-spag Hey there 👋 Just a friendly check-in ... did you manage to get anywhere with writing this How-to Guide? :-)

👋 I had other priorities, but it is still in my backlog.