Help articles

Invalid shape of predefined choices

This error means an entry in an array's options.list isn't a valid value for the array's declared member types.

As a general rule, the list of possible choices for array types must only contain values of valid item types for the array.

The exact message depends on what the array holds. For an array of objects it ends with Must be an object with "_type" set to …. For an array of primitives it ends with Must be either a value of type …, or an object with {title: string, value: …}.

A notable exception here is choices for primitive values, which can be given a display title by providing an object with title and value, where value is of a valid item type:

Was this page helpful?