Bixby Developer Center

References

single-value

optionalvalue required

Restrict the maximum cardinality of the related input based on a boolean expression.

If the expression tested by single-value evaluates to true, the prompt will behave as if max (One) was specified for the related input. If it evaluates to false, the prompt will use the value that the related input specifies for max.

Example

...
prompt (items) {
single-value (size(basket) == 1)
candidates (matches)
}
...
Note

You can use single-value to restrict an input constraint, but an input already specified as max (One) cannot have its cardinality constraint loosened to max (Many).