Variant of multi-value schema.

Hierarchy

Properties

Properties

single?: "as-is" | "prefer"

How to treat single values.

One of:

'as-is' (the default) to treat a single value as is and not convert it to array. 'prefer' to treat an array with single item as single value.

This option is ignored if single item type is a list itself.

Generated using TypeDoc