-
-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
import "list"
#test: this={
a?: [...string]
b?: string
c?: string
#AnyOfABC: true & list.MinItems([ for label, val in this if list.Contains(["a", "b", "c"], label) {label}], 1)
}{
"a": ["bar"],
"b": "foo"
}cue eval -c ./test.cue ./testany.json -d "#test"
#test.#AnyOfABC: conflicting values false and true:
./test.cue:7:13
./test.cue:7:20changing from array a to string works or changing the array field from optional to default works as well. This is slightly outside of the content of the page, bug a simple derivative.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels