-
|
I have to check a list for requiered values. Requiered values can be different - they depend on conditions. Example: if I have "config.nginx_conf" set to true, "playbooks.default" list must contain one of "NGINX_CONF", "NGINX_CONF2", "ALL_CONF" playbooks. data file - param.json: rules file - verifylist.cue: Error: List contain "ALL_CONF", so validation must be passed. But why I get error? What should I do to make a few checks that could contain one or more common elements like "ALL_CONF" in my example? UPD: param.json good.cue bad.cue Output: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The answer is: When calling the function outside of list, result will be "bool" as expected: |
Beta Was this translation helpful? Give feedback.
The answer is:
When calling the function inside of list, function returns result with type "list":
When calling the function outside of list, result will be "bool" as expected: