Interface Variant

Variant of map schema.

Hierarchy

Properties

Properties

duplicates?: "reject" | "collect" | "overwrite"

How to handle duplicate entries of the map.

Can be one of:

  • 'collect' to collect duplicates into one value. It is a good idea to declared map entry schemas as lists or multi-values.
  • 'overwrite' (the default) to entry value each time it is received. The value specified the last takes precedence.
  • 'reject' to reject duplicate entries.

Generated using TypeDoc