Can Flow limit strings to a number of alternatives, similar to enum?

18 Views Asked by At

In some legacy code, strings are used as enums, and should be limited to a certain number of available values. Is this possible to do with Flow?

1

There are 1 best solutions below

0
Olle Härstedt On BEST ANSWER

Yes, it's called a "literal union" in flow. See https://flow.org/en/docs/types/literals/.